MDB2, MySQL, numRows()
| From: | brian | Date: | Wed, 28 Jun 2006 21:58:42 +0000 |
| Subject: | MDB2, MySQL, numRows() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24507@lists.php.net to get a copy of this message | ||
PEAR 1.4.9
MDB2 2.1.0
MDB2_Driver_mysql 1.1.0
numRows: method not implemented[Native code: 0] [Native message: ]
Is this true? Or am i doing this wrong?
-- snip --
$sql = 'SELECT * FROM foo WHERE bar = ?';
$stmnt = $mdb2->prepare($sql, Array('integer'), MDB2_PREPARE_RESULT);
$result = $stmnt->execute($baz);
if (PEAR::isError($result))
{
die('bad result');
}
else
{
$out = $result->numRows();
die($out->getUserinfo());
}
-- snip --
brian