numRows() trouble....
| From: | Cory Hicks | Date: | Mon, 03 Feb 2003 21:12:41 +0000 |
| Subject: | numRows() trouble.... | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3590@lists.php.net to get a copy of this message | ||
Hello again....
Thanks to the list for the recent help! I am now moving onto other cool
PEAR features, but seem to be having problems with numRows(). I keep
getting this error:
Fatal error: Call to a member function on a non-object
Here is the code:
$query="SELECT * FROM users";
$result=$db_obj->simpleQuery($query);
if (DB::isError($result))
die($result->getMessage());
$num = $result->numRows();
What I am missing?
Thanks,
Cory
--
Cory Hicks <chicks@tri-intl.com>
TRI-International