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();
	  }

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.

yeah its solved now. it was due to mising paranthesis. thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.