I have some pretty simple code that's not throwing an exception on a client server.
The problem is that the table mytable
doesn't exist. Fair enough. But then it should throw an exception... or is there some unusual MySqli setup that would prevent an exception from being thrown?
Code is below:
$query = "DROP TABLE `mytable`";
try {
$db->query($query);
}
catch (Exception $e) {
//LOG THE ERROR
}