Categories
Links

PHP snippet: mysql_insert_id

I was trying to write a piece of code to input information into a database but at the same time, display the reference number of the item I was inputting. I came across mysql_insert_id:: Which will get the ID generated from the previous INSERT operation. According to http://au.php.net/mysql_insert_id, part of the PHP Manual.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.