Re: Syntax query

From: Date: Sun, 09 Mar 2003 18:42:34 +0000
Subject: Re: Syntax query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138871@lists.php.net to get a copy of this message
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

« previous php.general (#138871) next »