Can someone modfi this from using sessions to something more better, when i ban a user they wont be banned untill they login again, Need something that will say if theres 1 in the database for that user then kill the script, Next time they refresh the page, It be alot easier and better, or something that can destroy the sessions if it == 1 so they have to login again. When i ban them there not really banned till they login again, so something else that ould verifi the 1 (which = the user is banned in the database) Heres a snapshot of the database structure http://admintalk.net/imagehost/spudster/usrrs2.jpg <?php session_start(); include ("connection.php"); if ($_SESSION['banned'] == 1) die ("Your Account Has Been Disabled, Please Contact An Administrator!"); ?> Code (markup):
Hi, just check whether the user is banned in database by checking it: <?php session_start(); include ("connection.php"); //taking data from database if ($row['banned'] == 1) die ("Your Account Has Been Disabled, Please Contact An Administrator!"); ?> Code (markup):