$result = $mysql->query("SELECT * FROM `users` WHERE `login` =
'$fullname' AND `pass` = '$password'");
var_dump($result);
die();
if(count($user) == 0) {
echo "Такой пользователь не найден";
exit();
}
setcookie('user', $user['fullname'], time() + 3600 * 24 * 90, "/");
$mysql->close();
header('Location: /');