integer numRows ()
integer numRows
Get the number of rows in a result set.
integer - number of rows or a DB_Error object on failure
This function can not be called statically.
Example 26-1. Using numRows()
<?php // Once you have a valid DB object named $db... $res =& $db->query('SELECT * FROM phptest'); echo $res->numRows(); ?>
numCols(), affectedRows()