The lastInsertID method of the PDO class: PHP Programing The lastInsertID method of the PDO class: Answer: gets the ID for the last record with an auto-increment ID that has been inserted into a database Learn More : Share this Share on FacebookTweet on TwitterPlus on Google+