PDO::lastInsertId.If you're using Mysqli, use
mysqli::$insert_id.If you're still using Mysql:
Please, don't use
mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO orMySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
No comments:
Post a Comment