Diether Posted January 24, 2013 Share Posted January 24, 2013 Hi guys, Pls give me advice. Heres my problem. i have two data from same form(cart.php) that i want to insert in the different table in my database. 1. data came from the form( firstname,lastname,phonenumber etc.) 2. data came from session variable(item id, quantity, total etc) when the customer clicks the FINISH button, the data will be insert in the two separate tables in the database. pls give me an idea or sample codes on how to do that, thanks Here's my screenshot of my form: http://img6.uploadhouse.com/fileuploads/17206/17206849acfcfc9c2d269f15d122d96ab1f360bd.jpg Quote Link to comment https://forums.phpfreaks.com/topic/273612-helpinserting-two-data-in-different-table/ Share on other sites More sharing options...
gizmola Posted January 25, 2013 Share Posted January 25, 2013 This is simple with any type of database. What have you tried? Quote Link to comment https://forums.phpfreaks.com/topic/273612-helpinserting-two-data-in-different-table/#findComment-1408082 Share on other sites More sharing options...
SalientAnimal Posted January 25, 2013 Share Posted January 25, 2013 Yip, is as basic as having two scripts running on your submit page. But we will have to see examples of what you have tried to assist further. Quote Link to comment https://forums.phpfreaks.com/topic/273612-helpinserting-two-data-in-different-table/#findComment-1408119 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.