Get table contents Insert into another

admin

Administrator
Staff member
What I am trying to do is grab information I have stored temporarily in a table and move the contents to another table.

ex.
table 1. Holds PHPSESSID \w all users temp input such as multiple cart contents.

what I need to do is after the user completes his transaction is grab all the rows containing their PHPSESSID and put it into a table holding a list of their transactions.

so table 2. Holds completed transaction.

I know I should be using some time of looping statement.. yet I have gotten nothing to work correctly for me yet.

Any help is greatly appreciated!

Steve
 
Back
Top