Re: mysql_insert_id always returns zero

From: Date: Sun, 25 Jun 2000 16:43:51 +0000
Subject: Re: mysql_insert_id always returns zero
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3000@lists.php.net to get a copy of this message
Dave Nuttall <dnuttall@dnlt.com> wrote: > the result is always ZERO, even though a new > record was created with an appropriately incremented id value. I didn't see the word "auto" anywhere in your post. Does the SQL table have an auto_increment column? It's easier to try to help if we have your table definition and the relevant parts of the PHP code that you use. -- Greetings from Troels Arvin, Copenhagen, Denmark

« previous php.general (#3000) next »