0){ if($username==mysql_result($result, 0, "username") && $password==mysql_result($result, 0, "password")){ $_SESSION['sess_login']=mysql_result($result, 0, "uid"); $sql_chk_level=mysql_query("Select * from ".$prefix."users where uid=".mysql_result($result, 0, "uid")); if(mysql_result($sql_chk_level, 0, "level")==1){ header("Location: add_city.php"); exit; }else if(mysql_result($sql_chk_level, 0, "level")==2){ header("Location: add_company.php"); exit; }else if(mysql_result($sql_chk_level, 0, "level")==3){ header("Location: add_user.php"); exit; }else if(mysql_result($sql_chk_level, 0, "level")==4){ header("Location: locations.php"); exit; } }else{ $msg="Invalid Username or Password"; } }else{ $msg="Invalid Username or Password"; } } ?>
 
     
             
 
 
 
LOGIN AREA
       
  Username:  
  Password: