Posted By

chopbust on 03/02/11


Tagged

auto-increment


Versions (?)

Get Next Auto-increment number in the table


 / Published in: PHP
 

  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  

You need to login to post a comment.