numRows() and MySQL

From: Date: Wed, 22 May 2002 14:51:56 +0000
Subject: numRows() and MySQL
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1427@lists.php.net to get a copy of this message
I have: Linux/MySQL/PHP 4.1.2/Pear from CVS 5/16/2002. what is wrong woth this numRows() usage? $selectAssocSQL = "select keypid from association"; $db = $vars->make_db_connection(); $selectAssoc = $db->query($selectAssocSQL); if (DB::isError($selectAssoc)) { die ($selectAssoc->getMessage()); } else { //display assoc count echo $selectAssoc->numRows(); } This error comes back: Fatal error: Call to a member function on a non-object in /Library/WebServer/Documents/condosystems/ASPAdmin/action_cell.php on line 9 TIA, David Dahl ddahl.com

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