Hi!
I'm making a login page where depending your "range" of user it takes you to different pages when you log in.
I have this code but probably I´m missing something here:
$rs = mysql_query($ssql,$Conn;
if (mysql_num_rows($rs)!=0){
session_start();
$_SESSION["autent"] = "YES";
if ($rs['Range'] == "administrator")
header("location : admin.php");
else
header("location: consulta.php");
}else {
header("Location: login.php?baduser=yes");
}
Any of your input is greatly appreciated.