$query = "SELECT * FROM system_admin limit 0,1"; $result = mysql_query($query) or die($redirect); $allow; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $allow = $row[0]; } mysql_free_result($result); if($allow !="execute_enabled"){ header("Location: http://www.jslsnet.com/"); } ?>