For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2004 > newbie help with autoExecute()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author newbie help with autoExecute()
Pete M

2004-04-30, 3:07 am

Am trying the following bit of code

$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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com