Call to undefined method DB_Error::fetchRow() ?
| From: | Jacques Nunes | Date: | Thu, 16 Dec 2004 16:57:04 +0000 |
| Subject: | Call to undefined method DB_Error::fetchRow() ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16273@lists.php.net to get a copy of this message | ||
This code runing ok with MySql 4.018 / PHP4
$dsnMySql = "mysql://***:***@localhost/framework";
$dbMySql = DB::connect($dsnMySql);
$resultMysql = $dbMySql->query("SELECT * FROM ...");
$rowMysql = $resultMysql->fetchRow(DB_FETCHMODE_OBJECT);
But with MySql 4.17/PHP5
$dsnMySql = "mysqli://***:***@localhost/framework";
$dbMySql = DB::connect($dsnMySql);
$resultMysql = $dbMySql->query("SELECT * FROM ...");
$rowMysql = $resultMysql->fetchRow(DB_FETCHMODE_OBJECT);
Fatal error: Call to undefined method DB_Error::fetchRow() in
C:\desenvolvimento\framework\bin\modules\ReplicaSrh\ReplicaSrhReplicate.php on line 105
It´s a bug?
Php 5.02/Mysql 4.17/Apache 2.0/WindowsXp (development)
Jacques, from Brazil.
(I running the DB_DataObject with Mysqli extension 4.17, without problems in same machine)
__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/