autoexecute and mdb2
| From: | Mark Steudel | Date: | Tue, 25 Jul 2006 15:40:07 +0000 |
| Subject: | autoexecute and mdb2 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24756@lists.php.net to get a copy of this message | ||
I'm getting the following error:
Fatal error: Call to undefined function: autoexecute()
I'm running
MDB2 2.2.0
MDB2_Driver_mysql 1.2.0
Here's is my code.
$dsn = array(
'phptype' => 'mysql',
'username' => DB_USER,
'password' => DB_PASS,
'hostspec' => DB_HOST,
'database' => DB_NAME,
);
$this->db =& MDB2::connect($dsn);
if (PEAR::isError($db)) {
die($this->db->getMessage());
}
$this->db->setFetchMode(MDB2_FETCHMODE_ASSOC);
$this->db->loadModule('Extended');
$field_values['name'] = 'test';
$sth =& $this->db->autoExecute( 'tblsplashpages', $field_values );
Thanks, Mark
--------------------------------------------------------------
Mark Steudel
Web Applications Developer
555 Dayton St
Suite A
Edmonds, WA 98020
p: 425.741.7014
e: mark@netriver.net
w: http://www.netriver.net