DB: number of rows returned
| From: | Tobias Michaelsen | Date: | Tue, 14 Nov 2000 16:08:58 +0000 |
| Subject: | DB: number of rows returned | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-437@lists.php.net to get a copy of this message | ||
Is there a method for finding out how many rows a query returned?
{{{ Example:
<?php
include_once("DB.php");
$db = DB::connect("mysql://user:passwd@localhost/database");
$res = $db->query("SELECT * FROM members WHERE name='$name'");
echo $res->numRows();
?>
}}}
-Tobias-