0

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();
	  }
3
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by sidra 100
0

A pritaeas says - lines 14 and 19, however I will expand and let you know that the errors are due to missing closing parenthesis on both lines.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.