On Mon, 2003-03-10 at 03:01, Ernest E Vogelsinger wrote: > At 13:38 09.03.2003, Nik Makepeace said: > --------------------[snip]-------------------- > >Can anyone tell me why this doesn't work: > > > >$db_object = pg_fetch_object($this->getLastResult()); > > pg_fetch_object() returns an object with properties that correspond to the > fetched row. It returns FALSE if there are no more rows or error.
Yes, the error was indeed between the chair and keyboard. In fact I had (while curious) lazily wrapped all queries in "begin" and "commit" and this was causing the problem - the last result was the result of the commit, not the select. Thanks anyway. Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php