i am trying to insert info from a form into a table.. but thats not my problem..
The info I want insert has to be inserted to the User that is currently "active" in that table. My table structure:
User:
[ userid , username , password ..... active ]
Product:
[ product , name, .... ]
CartOwner
[ cartid, userid ]
CartContent
[ cartid, qty , productid ]
I want to insert info from a table which finds the currently active user, and then inserts the content he has selected into the cart that corresponds with his userid... help plz..
The info I want insert has to be inserted to the User that is currently "active" in that table. My table structure:
User:
[ userid , username , password ..... active ]
Product:
[ product , name, .... ]
CartOwner
[ cartid, userid ]
CartContent
[ cartid, qty , productid ]
I want to insert info from a table which finds the currently active user, and then inserts the content he has selected into the cart that corresponds with his userid... help plz..