I got a complain today about an error one of my users received on my forum (it's a SMF-forum). The error was: Database Error: MySQL server has gone away File: /home2/expenses/public_html/Sources/Security.php Line: 280 and it showed up several times and he had to refresh over and over again to get it to work. Can someone help me? The code in the requested file is: AND (" . implode(' OR ', $ban_query) . ')', __FILE__, __LINE__); PHP: I haven't done anything to it before.
Can you show your whole code? Except edit out your DB connection variables. It's hard to find the problem if I dont have the whole code.
Your error message is "MySQL Server has Gone Away" which means that your programming code is loosing the connection to the database before the query has been completed. The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. You can Google the error message or check out this link from the MySQL site: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html