$sql = "select * from ayarlar where admin=(select bayi from bayi where admin=$_SESSION[admin] and kademe='admin') and DATE_FORMAT(now(),'%H:%i') between sitekapanis and siteacilis";
$sorgu = mysql_query($sql);
while($oku=mysql_fetch_assoc($sorgu)){
if($_SESSION["kademe"]=="kullanici"){
session_destroy();
}
}
}Hata verilen kod kısmı Verdiği Hata
:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/canlimac/public_html/signin.php on line 56 Warning: Cannot modify header information - headers already sent by (output started at /home/canlimac/public_html/signin.php:56) in /home/canlimac/public_html/signin.php on line 76