Hi there, i have this function:
//Function to check username/password
function checkUser($username, $password, $color, $room){
$result = mysql_query("SELECT password FROM girls WHERE username = '". $username ."'");
$array = mysql_fetch_array($result);
if ($array["password"] == $password){
$username = "<font color=". $color ."><b>". $username ."</b></font>";
session_register("room");
session_register("username");
mysql_query ("UPDATE girls SET lastAccess = NOW()") or DIE ("Unable to update NOW");
//return $username;
return true;
}else{
return false;
}
}
But it seems to be completey bypassing this line:
$username = "<font color=". $color ."><b>". $username ."</b></font>";
I know the rest of the function is OK as it registers both sessions username and room.
Anyone have any idea why?
Cheers,
Mike