$result2 = $MDB2->query("SELECT `ID`, `Name`, `URLName` FROM tblCurricularArea WHERE `Parent`=" . $MDB2->quote($contentID,'integer') . " ORDER BY DisplayOrder"); /* And here's the error it produces PEAR-Error MDB2 Error: not found: unable to find package 'MDB2_Datatype' file 'MDB2\Datatype.php' PEAR-Error MDB2 Error: no such field: _doquery: [Error message: Could not execute statement] [Last query: SELECT `ID`, `Name`, `URLName` FROM tblCurricularArea WHERE `Parent`=Object ORDER BY DisplayOrder] [Native code: 1054] [Native message: Unknown column 'Object' in 'where clause'] Fatal error: Call to undefined function: fetchrow() in C:\pathtoproject\Site\includes\left_nav.inc.php on line 30 */ // error handler function handle_pear_error ($error_obj) { global $showDebug; if (!$showDebug) { die("Your request could not be completed due to a database error."); } else { print '
PEAR-Error'; } } PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handle_pear_error');
'; echo $error_obj->getMessage().': '.$error_obj->getUserinfo(); print '