Where and how to write a code that will check if error showing “MySQL server has gone away” appears and print some error diferently and more nicely.
Warning: mysqli::mysqli() [mysqli.mysqli]: MySQL server has gone away
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is another post that answers this (Solving "MySQL server has gone away" errors) with the following code snippet: