RE: Pear - autoExecute()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://pear.php.net/manual/en/package.database.php



-----Original Message-----
From: pete M [mailto:pmorgan@xxxxxxxx] 
Sent: Thursday, April 29, 2004 14:03
To: php-db@xxxxxxxxxxxxx
Subject:  Pear - autoExecute()

Am trying the following bit of code usind the PEAR DB.php class

$table = 'reports';
$fields = array('report_name' => $_POST['report_name'],
         'report_desc' => $_POST['report_desc']
         );
$res = $db->autoExecute($table,$fields,DB_AUTOQUERY_INSERT);

if (DB::isError($res)) {
     die($res->getMessage());
}

However I get the error
Fatal error: Call to undefined function: autoexecute() in 
/home/jp/public_html/v1/reports.php on line 19

I'm using the $db->query() methods and getALL etc so I know the class is 
loaded and working.

Is there a library I'm missing

tia

Pete

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux