0

Since I update php from 7 to 8, my mysqli exceptions trigger fatal error on php level, and then trigger a GUI fatal error message.

Before, when on php 7, the script continue and i can process the mysqli_error and show the message with correct formating (gui friendly).

I think i have to do some php.ini conf but i didn't succeed to have the expect result as before. I trye play with error_reporting:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING

with no success.

Anyone know how to prevent mysql query/syntax error to trigger a php error but still keep the mysqli_error available ?

Thank you

Waldon
  • 79
  • 1
  • 8

0 Answers0