SyntaxFix
Write A Post
Hire A Developer
Questions
You have to connect to MySQL and select a database before you can do this
$table_name = "myTable"; $query = mysql_query("SHOW TABLE STATUS WHERE name='$table_name'"); $row = mysql_fetch_array($query); $next_inc_value = $row["AUTO_INCREMENT"];