<?php include"../../sys/fnc.php"; $res=$db->query("select * from `down`"); $downst=$res->num_rows; if($_SESSION['downst'] != $downst){echo'1'; unset($_SESSION['downst']); $_SESSION['downst']=$downst;}else{echo'0';} $res->close(); ?>