Re: Refresh

From: Date: Tue, 27 Mar 2001 22:22:06 +0000
Subject: Re: Refresh
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7912@lists.php.net to get a copy of this message
I don't know Postgresql, but all databases I've dealt with increments auto-increment fields only on committing insert commands. I think you can catch the last id number (MySQL do it) and show the number + 1 on the user screen. HTH Jayme. -----Mensagem Original----- De: Julio Cuz, Jr. <jcuz@rccd.cc.ca.us> Para: <php-db@lists.php.net> Enviada em: terça-feira, 27 de março de 2001 16:51 Assunto: [PHP-DB] Refresh > Hi-- > > I don't know if this is something PHP can solve, or if my database engine > (Postgresql 7.03) needs to do something. > > Every time a user adds a new request, a new ID is generated, but SOMETIMES, > when the same user adds several requests, one after another, the browser > does NOT refresh and it displays the previous ID. > > For example: User A submits a new request (#1001), then adds another one > (#1002), it should display #1002, but instead it displays #1001. Any ideas? > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#7912) next »