MDB::setfetchmode()
| From: | Peter Valicek "- Snr. Cluster Engineer | Date: | Fri, 02 May 2003 07:24:33 +0000 |
| Subject: | MDB::setfetchmode() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5177@lists.php.net to get a copy of this message | ||
Hello,
if I try to use MDB there is an error, by using setfetchmode.
Example Code:
/*
* Connections MySQL
*/
require_once 'MDB.php';
$dsn_mysql =
"mysql://".$myPrefs['username'].":".$myPrefs['password']."@".$myPrefs['hostname']."/".$myPrefs['database']."";
$my = MDB::connect($dsn_mysql,$myPrefs['options']);
$my->setFetchMode(MDB_FETCHMODE_ASSOC); <<<< LINE 19
I'll get following error by using this:
Fatal error: Call to undefined function: setfetchmode() in
/var/apache/htdocs/opencall_dev/sbin/dbTrans/dbcons.php on line 19
In my Preferences I have:
$myPrefs['options']['persistent'] = "true";
$myPrefs['options']['optimize'] = "performence";
$myPrefs['options']['autofree'] = "true";
May someone can tell me why this is not working?
Thanks in forward.
Cheers
Peter