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 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 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
Archived
This topic is now archived and is closed to further replies.