• You are not logged in. | Login

Post a reply

November 16, 2006 9:48 pm

sirburpsalot
Member
Ranks

another interesting problem

I've got another problem I can't figure out.

When I fill in an order form, it writes that data to my tables, and I want to then output that order back to the users.  The table uses an auto-increment on the ID field, but how do I now what the new index is when I post the new record?


 

 

November 23, 2006 1:21 pm

senjor_itc
Member
Ranks

Re: another interesting problem

Hi,

Try to use mysql_insert_id($db_link) after inserting the data into tables. This function will return the last ID of auto increment field.

Thanks


 

 
  • Actions
  • Top
ITCrimea. Ukraine Web Development Company. Professional Developers and Web Designers Team
Custom Web Designs, Internet Applications, E-Commerce Websites, Interactive Sites, Database-Driven Sites and Services