hmm.. Maybe I am not explaining my situation well enough. I apologize for that.
My shopping cart has no user authentication. I do not want people to have to sign up to buy. So what i did was create 2 tables for transactions.
Table 1. Is a temporary table to store a random users cart selection.
Upon checkout, existing users can login and new users fill out their information. Once checkout is finished I need to put all the items selected by the user sorted by their PHPSESSID into table 2 and assign the items to the users unique id.
Table 2. Is for finished transactions, it is sorted by a unique user id. It contains all the account status information for both the admin and the user.
So, I am not sure how I could tie both of these tables into 1.
Thanks again for your feedback, if this changes anything I would like to hear your opinion.
Steve