hey can any1 tel me the eror in my code part of code where problem lies is
if($result)
{
if (mysql_num_rows($result)==1)
{
session_regenerate_id();
$employee = mysql_fetch_assoc($result);
$_SESSION['SESS_EMP_ID'] = $employee['employee_id'];
$_SESSION['SESS_NAME'] = $employee['employee_name'];
$_SESSION['SESS__dept']=$employee['department_id'];
$_SESSION['SESS_rank']=$employee['rank'];
session_write_close();
if
($_SESSION['SESS_rank']==$employee.rank("admin")
{
header("location: administrator.php");
exit();
}
elseif($_SESSION['rank']==$employee.rank("shift incharge")
{
header ("location: Shift_incharge.php");
exit();
}