Re: numRows() returns error object

From: Date: Thu, 29 Apr 2004 06:52:08 +0000
Subject: Re: numRows() returns error object
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12210@lists.php.net to get a copy of this message
Roger Spears wrote:
Hello, Here's my code: $res =& $db->query('SELECT * FROM table'); echo $res->numRows(); print "<p>"; echo $res->numCols(); Why does numRows() return an error object? When I print out the error object, it is actually my SQL statement... Does anyone know if you can use numRows() on an Oracle database table?
Not easily. Have a look here: http://pear.php.net/manual/en/package.database.db.intro-portability.php Specifically at DB_PORTABILITY_NUMROWS regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

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