Jump to content

Archived

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

visions

Help! Need to retreive order number!

Recommended Posts

Hi all,

 

I'm hoping someone out there can help me out with this as it's got me completely stumped!

 

I'm putting together an order system where once the customer submits their order the results are logged to a MySQL database - as each entry gets logged a unique order no is generated by the database (through auto-increment) -

 

my problem is I need to display the order number on the following page:

 

eg. Thanks for your order, your order number is ..........

 

I've tried everything & can't get the order number value to appear on the confirmation page... any ideas or input would be very much appreciated! Thanks in advance to anyone who is able to help.

Share this post


Link to post
Share on other sites

could do with some code mate, u can always put the variable into a hidden form or grab it from http var.

Share this post


Link to post
Share on other sites

If the column is the ID and it is primary use insert_id

 

And you can get the insert-retrieve-id ext from DW Team for what use it is.

 

Share this post


Link to post
Share on other sites

×

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.