I'm not looking to change maximum execution time at this time, (like every thread in the search box,) I just want to error handle the line, but it's not working for me.
Here's my code:
$multiSupplierResult = mysqli_query($con, $multiSupplierQuery) or trigger_error("Query Failed! SQL: $multiSupplierResult");
I get this error though when I run the query with too many lines:
Fatal error: Maximum execution time of 30 seconds exceeded in blah blah on line blah blah....
Why is my error handler not working?
Update
I found this code in the other thread, which works great:
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
if ($error['type'] == 1) {
echo "<pre>";
print "blah blah blah";
echo "</pre>";
}
}
However, if the user searches too many parts, and the query takes more than 30 seconds, they see this blah blah blah
message, but they ALSO still see the Fatal Error
message. How do I HIDE that message completely?