ecopetition Posted January 21, 2012 Share Posted January 21, 2012 Hello, I'm inserting using PHP a row in a MySQL table, with a unique index that auto_increments to give each row a unique ID. When I insert a new row with PHP, how can I find out the ID of the new row I just entered? Many thanks, Peter Quote Link to comment https://forums.phpfreaks.com/topic/255484-inserting-row-into-mysql-then-getting-its-auto_increment-id/ Share on other sites More sharing options...
Pikachu2000 Posted January 21, 2012 Share Posted January 21, 2012 mysql_insert_id Quote Link to comment https://forums.phpfreaks.com/topic/255484-inserting-row-into-mysql-then-getting-its-auto_increment-id/#findComment-1309870 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.