I'm developing an admin tool to run MySQL-based INSERT and UPDATE commands. When a user inserts a new row into the database, the primary key is auto-incremented by MySQL. How do I get back the value of the ID that was just inserted?
http://www.php.net/manual/en/function.mysql-insert-id.php