Get current AUTO_INCREMENT value – MySQL query
January 29th, 2009
No comments
Solution is simple, use mysql_insert_id() php function.
mysql_insert_id() returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement. Use this function after you have performed an INSERT statement into a table that contains an AUTO_INCREMENT field, ...
Categories: MySQL, PhP, Tech AUTO_INCREMENT, Get Next Auto_increment, MySQL, MySQL query, mysql_insert_id, PhP, programming








