Fallen,
вот
$query = $mysqli->query(\"SELECT * FROM `\".$prefix.\"settings`\"
;
while($queryy = $query->fetch_assoc())
{
$set[$queryy[\'name\']] = $queryy[\'value\'];
}
$cache = array();
$query = $mysqli->query(\"SELECT * FROM `\".$prefix.\"cacheSettings`\"
;
while($queryy = $query->fetch_assoc())
{
$cache[$queryy[\'name\']] = $queryy[\'value\'];
}
if(isset($_COOKIE[\'login\']) AND isset($_COOKIE[\'password\']) AND empty($user_data))
{
$log = mysqli_real_escape_string($mysqli,htmlspecialchars(trim($_COOKIE[\'login\'])));
$pas = mysqli_real_escape_string($mysqli,htmlspecialchars(trim($_COOKIE[\'password\'])));
$user = $mysqli->query(\"SELECT * FROM `\".$prefix.\"users` WHERE `login`=\'\".$log.\"\' AND `password`=\'\".$pas.\"\'\"
;
if($user->num_rows > 0)
{
$user_data = $user->fetch_assoc();
}
}
а на сайте выдает вот такую ошибку
Fatal error: Call to a member function fetch_assoc() on a non-object in /home/imstatne/public_html/Sys/core.php on line 16