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. <[EMAIL PROTECTED]>
Para: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]