$db = new mysqli($host, $user, $password, $database)
or die("Error " . mysqli_error($db));
$sql = "SELECT name, password FROM login WHERE name = '$login_admin->nickname'";
$res = $db->query($sql);
if($login_admin->password == $res->password){
echo "Ok";
}else{
echo "faslse";
}