RE: [PHP] dumb question

From: Date: Tue, 17 Oct 2000 23:25:44 +0000
Subject: RE: [PHP] dumb question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20736@lists.php.net to get a copy of this message
Use: mysql_insert_id - Get the ID generated from the previous INSERT operation. > -----Original Message----- > From: David Dahl [mailto:david@mail.ddahl.com] > Sent: Wednesday, 18 October 2000 09:21 > To: PHP > Subject: [PHP] dumb question > > > how do you get the value of an auto increment primary key after an insert > into MySQL? > > i need this value to insert as a foriegn key... > > i tried "mysql_fetch_row" to no avail... > > david dahl > programmer-consultant > http://ddahl.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#20736) next »