Re: Pear - autoExecute()
| From: | pete M | Date: | Thu, 29 Apr 2004 12:31:04 +0000 |
| Subject: | Re: Pear - autoExecute() | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34172@lists.php.net to get a copy of this message | ||
That's where I copied the code below that does not work ;-(
Uzi Klein wrote:
http://pear.php.net/manual/en/package.database.php -----Original Message----- From: pete M [mailto:pmorgan@ukds.net] Sent: Thursday, April 29, 2004 14:03 To: php-db@lists.php.net Subject: [PHP-DB] 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