global $db question.
Posted: Sun Feb 26, 2006 9:22 pm
Where can I find out more about the $db functions? How would I get the error as ErrorMsg() does not seem to work.
global $gCms;
global $db;
...
$dbresult = $db->Execute($query);
if( !$dbresult ) {
//$r .= $dbresult->ErrorMsg();
$r .= "Failure";
}
else {
$r .= "Success\r";
}
...
global $gCms;
global $db;
...
$dbresult = $db->Execute($query);
if( !$dbresult ) {
//$r .= $dbresult->ErrorMsg();
$r .= "Failure";
}
else {
$r .= "Success\r";
}
...