Saturday, 23 March 2013

how to get the last inserted id in sql query

retrieves the ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT).
use the function mysql_insert_id()

No comments:

Post a Comment