by mungushume@monkeyr.com
\system\driver\db\pdo.php \system\library\db.php
<?php
db::query("select * from nonexistanttable");
if(($sqlerror = db::lasterror()))
{
echo "<pre>";
print_r($sqlerror);
echo "</pre>";
}
?>
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'nonexistanttable' doesn't exist
)
Notice: DB SELECT Failed with "Table 'nonexistanttable' doesn't exist"
select * from nonexistanttable
In current file At Line (unknown)
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'nonexistanttable' doesn't exist
)