Re: A small question - Mysql_insert_id

From: Date: Sat, 01 Jun 2002 15:06:41 +0000
Subject: Re: A small question - Mysql_insert_id
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100225@lists.php.net to get a copy of this message
On Sunday, June 2, 2002 at 4:07:31 AM, you wrote: > will this return the row number or the "id" fields value..? > If it returns the row number how do I get the ID number? > The id started at 1500. From the manual page for mysql_insert_id()... "mysql_insert_id() returns the ID generated for an AUTO_INCREMENT column by the previous INSERT query" In other words, it returns the "id" fields value. Don't take this the wrong way, but you clearly didn't look this up in the manual. This list is to help with real problems, not manual lookups. -- Stuart

« previous php.general (#100225) next »