i just want to query a table and determine what the next key will be so i can auto populate a form.
Code: Select all
$next_autoindex_id = mysql_insert_id();
echo ($next_autoindex_id + 1);thanks in advance
Moderator: General Moderators
Code: Select all
$next_autoindex_id = mysql_insert_id();
echo ($next_autoindex_id + 1);Code: Select all
SELECT MAX(ID) AS max FROM table