SQL ERROR
Hey all,
can you help me please Got this error SQL ERROR MySQL server has gone awayin /home/admin/web/include/functions.php, line 157 line is in fuctions.php Code:
function write_log($text) Code:
PHP Warning: Error while sending QUERY packet. PID=23744 in /home/admin/web/public_html/userdetails.php on line 240 Code:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /home/admin/web/public_html/include/functions.php on line 154 |
you have a wrong query in the userdetails and not in the sql error function.
Show the request in userdetails line 240. |
However, it is interesting that it does not show me an error in all users only for some
Quote:
|
Add this to the top of the file ini_set('memory_limit','-1'); or edit it in php.ini
|
just increase your memory_limit
|
ok, where can find memory_limit in php.ini
|
Quote:
Code:
$rescom = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT COUNT(*) FROM comments WHERE user = ".$user['id']) or sqlerr(__FILE__,__LINE__); For the first two - you can not mix the names of variables, you will sometimes get out errors. Or so you can: Code:
$resclient = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT name FROM clientselect WHERE id = ".$user['clientselect']) or sqlerr(__FILE__,__LINE__); |
Hello!
PHP Code:
|
Code:
if(!function_exists("htmlspecialchars_uni")){function htmlspecialchars_uni($message){ I would have someone to take a picture - why the hell do I need to find out the client's name? |
i still don't know what to do
|
All times are GMT +2. The time now is 22:49. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.