chelnov63 Posted January 15, 2009 Share Posted January 15, 2009 Hi I'm using php and mysql... Im inserting a record and need the id number back of the record just inserted .. e.g $insertSQL = "INSERT INTO articles (title, summary, description, author, company, publish_date, article_type, live) VALUES ('$title', '$summary', '$description', '$article_type', '$author', '$company', '$publish_date', '$live')"; Is there a way to get back the id number of the record just inserted? thanks Link to comment https://forums.phpfreaks.com/topic/140918-get-back-id-number-of-inserted-record/ Share on other sites More sharing options...
Mchl Posted January 15, 2009 Share Posted January 15, 2009 mysql_insert_id Link to comment https://forums.phpfreaks.com/topic/140918-get-back-id-number-of-inserted-record/#findComment-737573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.