Re: Auto-increment questions...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 5 Oct 2004 14:18:55 -0700, Andrew Kreps <andrew.kreps@xxxxxxxxx> 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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux