HI!
This code is suppose to recognize users and depending your range (from the database) it takes you to different areas, but the header of admin.php doesn´t work. Any other user logs in with no probl.
Any ideas?
$rs = mysql_query($ssql,$ConN) or die(mysql_error());
if (mysql_num_rows($rs)!=0){
session_start();
$_SESSION["autent"] = "YES";
$arrRecord = mysql_fetch_array($rs);
if ($arrRecord['Range'] == "admin")
header("location : admin.php");
else
header("location: welcome.php");
}else {
header("Location: login.php?wronguser=yes");
}
Any help is appreciated