Re: DB interface problem

From: Date: Tue, 27 Oct 2009 21:57:34 +0000
Subject: Re: DB interface problem
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-46593@lists.php.net to get a copy of this message
Hi Chris,
$this->res = @pg_execute($this->session, $query); PHP is therefore trying to assign a query result to a property that doesn't exist. I would have expected PHP to throw an error at this but it may have been obscured with your logging settings, I'm not sure.
Close - the '@' before pg_execute is hiding the notice/warning. I'd say check your database username/password are correct.
Yeah I noticed that, but the line below it does a check to see if the pg_execute command succeeded, and if it didn't it kills the script, but that's not happening - it's getting further down the line, which is why I think $this->res is not being persisted across method calls. Andy

« previous php.db (#46593) next »