MySQL Forums
Forum List  »  Newbie

Need a 'mysql_insert_id()' code sample
Posted by: Greg Jamison
Date: August 17, 2004 09:32AM

Hello,

I need a code sample for how to use mysql_insert_id(). I am trying to retrieve a just-inserted ID number after having performed an INSERT. I checked the MySQL manual and there was an explanation of what it does but no code sample. I'm not sure where or how to use it. AND how would I assign that value to a string?

Thank you!

Options: ReplyQuote


Subject
Written By
Posted
Need a 'mysql_insert_id()' code sample
August 17, 2004 09:32AM
August 18, 2004 12:15PM
August 19, 2004 03:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.