RE: [PHP-DB] getting data back when inserting

From: Date: Wed, 01 Dec 2004 19:48:13 +0000
Subject: RE: [PHP-DB] getting data back when inserting
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37519@lists.php.net to get a copy of this message
mysql_insert_id bastien
From: "Aaron Todd" <aaloki88@hotmail.com> To: php-db@lists.php.net Subject: [PHP-DB] getting data back when inserting Date: Wed, 1 Dec 2004 11:01:19 -0500 I was wondering if somone might be able to suggest a command to me...I am inserting data into a MySQL database that has an auto-incrementing primary field. When I insert the data I would like to somehow get the value of the auto-incrementing primary field. I thought I could just run a SELECT statement on some of the data that I am inserting, but the problem is that it could have a duplicate already in the database. Anyone know of a command or something to point me in the direction I am looking to go? Thanks, Aaron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#37519) next »