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, Quote Link to comment 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() Quote Link to comment Share on other sites More sharing options...
crouchjay Posted May 19, 2006 Author Share Posted May 19, 2006 Thank you 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.