Jump to content

[HELP]Inserting two data in different table


Diether

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.