Re: PEAR undefined function when converting to Postgres
| From: | Alexey Borzov | Date: | Tue, 03 Jun 2003 17:51:51 +0000 |
| Subject: | Re: PEAR undefined function when converting to Postgres | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5764@lists.php.net to get a copy of this message | ||
Hi!
ksayre@Telsource.com wrote:
The most confusing part it that I have the most recent version of PEAR, and it was working fine on the previous MySQL server. Here's the connect, and the piece of code that it craps on. Any ideas?Actually, there are some:
$result = $db->query("SELECT fieldname, fieldname2 FROM tablename WHERE fieldname = 'me'");Add here: if (DB::isError($result)) {
die($result->getMessage() . '<br />' . $result->getUserInfo());}
$rows = $result->numrows(); Thanks in advance for the help. I've also tried commenting out the setFetchMode without any effect either.