PEAR undefined function when converting to Postgres

From: Date: Tue, 03 Jun 2003 17:44:53 +0000
Subject: PEAR undefined function when converting to Postgres
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5763@lists.php.net to get a copy of this message
Here's the problem I'm having. We are converting a site from MySQL to Postgres. We've gotten the db moved and setup, but one portion of the site is giving the following error: Fatal error: Call to undefined function: numrows() in /var/www/html/page.php on line 57 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? Connect: <?php require_once( 'DB.php'); $db = DB::connect( "pgsql://username:password@tcp(ipaddress:5432)/dbname" ); $db->setFetchMode(DB_FETCHMODE_ASSOC); ?> Section of code after the above has been included: $result = $db->query("SELECT fieldname, fieldname2 FROM tablename WHERE fieldname = 'me'"); $rows = $result->numrows(); Thanks in advance for the help. I've also tried commenting out the setFetchMode without any effect either. Kevin

« previous php.pear.general (#5763) next »