mysql_insert_id() or last_insert_id() ?
Posted 13 October 2006 - 10:24 PM
I have a query that inserts some info into a table named nights, when that query is done I have another one that inserts info into a table named rTables, in rTables I also have to insert the id of the last inserted row. If i I use mysql_insert_id() it might give me the id of another table if someone else is doing something on the site.
I was wondering if LAST_INSERT_ID() does the same thing.. and what would be the best way of getting the id of the last row added in a table
Posted 13 October 2006 - 10:42 PM
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
Posted 13 October 2006 - 10:43 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users