Get Next Auto-increment number in the table


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $r = mysql_query("SHOW TABLE STATUS LIKE 'table_name' ");
  2. $row = mysql_fetch_array($r);
  3. $Auto_increment = $row['Auto_increment'];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.