Accessing last inserted record in a PSQL Database table

From: Date: Tue, 27 Nov 2007 00:19:07 +0000
Subject: Accessing last inserted record in a PSQL Database table
Groups: php.db 
Request: Send a blank email to php-db+get-44360@lists.php.net to get a copy of this message
I need to access the last inserted record in a postgresql database table from php. I connect to the db using pg_connect I construct the query string, and I use pg_query to send the query. I get the record inserted, of course. One of the fields, which is my primary key, is an autoincrement field. I need to fetch this value. Any idea? I would really apreciate your helping me.

« previous php.db (#44360) next »