crouchjay Posted May 19, 2006 Share Posted May 19, 2006 I want to create a new row of data, but I need the query to return the newly created rowID. How do I go about doing this?Jay, Link to comment https://forums.phpfreaks.com/topic/10033-can-i-insert-and-select/ Share on other sites More sharing options...
ryanlwh Posted May 19, 2006 Share Posted May 19, 2006 on the php side, use mysql_insert_id().within mysql, use SELECT LAST_INSERT_ID() Link to comment https://forums.phpfreaks.com/topic/10033-can-i-insert-and-select/#findComment-37289 Share on other sites More sharing options...
crouchjay Posted May 19, 2006 Author Share Posted May 19, 2006 Thank you Link to comment https://forums.phpfreaks.com/topic/10033-can-i-insert-and-select/#findComment-37297 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.