select...insert (NOT insert...select)


#1

Quick question…I’m currently doing a site where I need to insert information into a table, and then get the id from that inserted item, I am wondering if there is a way to do this in one step rather than having to do a INSERT than a SELECT. The insert…select thing will only insert an item, it doesn’t return anything, so i’m hoping maybe there is a select…insert thing that selects an item from an inserted row or something.


#2

mysql_insert_id

http://www.php.net/manual/en/function.m … ert-id.php