What server side language are you using? Assuming it's PHP, you would use one of the functions for the connection type you are using. Example, for mysqli you use "$insert_id". For PDO, "lastInsert_Id. If mysql, then "mysql_insert_id(). Hopefully you're not still using mysql.
↧