Debug serveur stats\nDebug
This commit is contained in:
@ -19,15 +19,15 @@ class db extends mysqli
|
||||
}
|
||||
while ($this->connect($this->mysqlServer, $this->username, $this->passwd, $this->database) === false)
|
||||
{
|
||||
//logger(ERROR,_("Connection to sql server error :") . $this->connect_error, __FILE__ . ":" . __LINE__);
|
||||
logger(ERROR,_("Connection to sql server error :") . $this->connect_error, __FILE__ . ":" . __LINE__);
|
||||
sleep(5);
|
||||
$flagError = true;
|
||||
}
|
||||
if ($flagError === true)
|
||||
{
|
||||
//logger(ERROR, _("Connection to sql server ready"), __FILE__ . ":" . __LINE__);
|
||||
logger(ERROR, _("Connection to sql server ready"), __FILE__ . ":" . __LINE__);
|
||||
}
|
||||
$result = new mysqli_result($this);
|
||||
$this->result = new mysqli_result($this);
|
||||
}
|
||||
|
||||
function protect($string)
|
||||
@ -35,4 +35,6 @@ class db extends mysqli
|
||||
return $this->real_escape_string($string);
|
||||
}
|
||||
}
|
||||
$mohaDB = new db();
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user