MySQL server has gone away in code example
Example: mysql server has gone away
It may be easier to check if the connection and re-establish it if needed.
See PHP:mysqli_ping for info on that.
It may be easier to check if the connection and re-establish it if needed.
See PHP:mysqli_ping for info on that.