Re: Auto-increment questions...

From: Date: Tue, 05 Oct 2004 21:20:07 +0000
Subject: Re: Auto-increment questions...
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-36634@lists.php.net to get a copy of this message
On Tue, 5 Oct 2004 14:18:55 -0700, Andrew Kreps <andrew.kreps@gmail.com> wrote: > if (isset ($lastId) && ($lastId < $id - 1)) > { > $returnVal = $lastId + 1; > } Sorry, I left a bit of a bug in there. You should exit the loop at this point, if you've found a gap.

« previous php.db (#36634) next »