Oracle and numRows

From: Date: Mon, 15 Dec 2003 20:30:42 +0000
Subject: Oracle and numRows
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9538@lists.php.net to get a copy of this message
Hello, I'm trying to get the numRows command to work with using Oracle. Here is my code: $dsn = "somebox://me@here"; $db = DB::connect($dsn); if (DB::isError($db)) { die ($db->getMessage());} $sql = "select RUR_ID, EMAIL, GENDER, AGE, P_CODE, P_TOWN from AD_SRV_LIBRARY where $urField like '%$urValue' order by $SortBy"; $result = $db->query($sql); if (DB::isError($result)) { die ($result->getMessage()); } echo "\n[" . $result->numRows(). " rows returned]\n"; ---- END OF COPY/PASTE The information I get back is "Object" every time. Anyone know why? Thanks! Steve

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