Thread: SQL ERROR
View Single Post
  #1  
Old 1st June 2021, 23:39
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default 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)
{
  $text = sqlesc($text);
  $added = sqlesc(get_date_time());
  mysqli_query($GLOBALS["___mysqli_ston"], "INSERT INTO sitelog (added, txt) VALUES($added, $text)") or sqlerr(__FILE__, __LINE__);
}
and ErrorLog say

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
Reply With Quote