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! Link to comment https://forums.phpfreaks.com/topic/17199-finding-id-of-value-entered/ 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 Link to comment https://forums.phpfreaks.com/topic/17199-finding-id-of-value-entered/#findComment-72840 Share on other sites More sharing options...
fenway Posted August 11, 2006 Share Posted August 11, 2006 That is, "SELECT LAST_INSERT_ID()". Link to comment https://forums.phpfreaks.com/topic/17199-finding-id-of-value-entered/#findComment-73162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.