chico1st Posted August 11, 2006 Share Posted August 11, 2006 Hey i was wondering if there is a way to know the ID (auto_assigned primary key) of a value you just input. The only way I can think of... [i]unless there is a command.[/i].. is to just go through the whole table and note the very last ID.Any help would be great!THANKS! Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 11, 2006 Share Posted August 11, 2006 http://ca.php.net/manual/en/function.mysql-insert-id.php Quote Link to comment Share on other sites More sharing options...
fenway Posted August 11, 2006 Share Posted August 11, 2006 That is, "SELECT LAST_INSERT_ID()". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.