Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Insert To A Table In The Database


RyanN

Recommended Posts

Posted

When the person selects all there products, and goes through the check out process, the first page they see is the Delivery Information page.

 

I modified the page to look something like this:

Image - http://tzfiles.com/users/ryan/checkout_shipping.gif

 

You see the text areas in the image?

The text that gets placed in there needs to be saved to a table in the database, so I can retrieve them later.

Where would I place the insert to the table for that? I know how to write the code, I just don't know where to write it.

 

Please help me A.S.A.P.

 

Thanks for the Help!

Posted
Bump

 

why not just create a new table just for the comments? In the columns, be sure to have product id and model id to verify which item is being commented.

Posted

I will be creating a table, I just need to know when and where to insert it to the table.

 

If those are saved in sessions, I need to know when to save them into a session as well.

Posted

If you viewed my image, you will see there are 3 circled things in red, the bottom two are what I will be reffering to.

 

When the person presses Continue, I would like those values to be stored in a database table I made, it has 3 columns:

- cardComment

- productID

- userID

 

So this is reffering to a database table, not a php table.

 

Where would I put my PHP/SQL to store the information?

Posted
Bump

 

 

take a look at your checkout_process.php file

all the inserts are performed in this file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...