Taxa Posted June 15, 2008 Share Posted June 15, 2008 How would I retrieve an auto incremented value after I have inserted a new row? So, lets say I have a table with the columns "ID" and "VALUE". I insert something into "VALUE" and the "ID" column automatically adds a value to the column. How would I retrieve this value straight after I have inserted a new value into "VALUE"? Quote Link to comment https://forums.phpfreaks.com/topic/110261-solved-retrieving-auto-incremented-value-when-inserted/ Share on other sites More sharing options...
pocobueno1388 Posted June 15, 2008 Share Posted June 15, 2008 mysql_insert_id() Quote Link to comment https://forums.phpfreaks.com/topic/110261-solved-retrieving-auto-incremented-value-when-inserted/#findComment-565750 Share on other sites More sharing options...
Taxa Posted June 15, 2008 Author Share Posted June 15, 2008 wow! Thanks for the quick reply! I mean, I just blinked and I got my answer! Quote Link to comment https://forums.phpfreaks.com/topic/110261-solved-retrieving-auto-incremented-value-when-inserted/#findComment-565752 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.