Personal Management Record System Error

Submitted by kurfi on
Can some one help please? I downloaded Personal Management Record Sysytem and install it on my machine. if i login in the admin and user page it displayed the following error:
  1. if ($count1 == 1){
  2. session_start();
  3. $_SESSION['id']=$row1['User_id'];
  4. $_SESSION['User_Type']=$row1['User_Type'];
  5. $type=$row1['User_Type'];
  6.  
  7. mysql_query("INSERT INTO history (data,action,date,user)VALUES('$f $l', 'Login', NOW(),'$type')")or die(mysql_error());
  8.  
  9.  
  10. header('location:home_user.php');
  11. }
  12.  
  13. if ($count > 0){
  14. session_start();
  15. $_SESSION['id']=$row['User_id'];
  16. $_SESSION['User_Type']=$row['User_Type'];
  17. $type=$row['User_Type'];
  18.  
  19. mysql_query("INSERT INTO history (data,action,date,user)VALUES('$f $l', 'Login', NOW(),'$type')")or die(mysql_error());
  20.  
  21.  
  22. header('location:home.php');
  23. }else{
  24. ?>
  25.     <div class="alert alert-error">
  26.     <button class="close" data-dismiss="alert">×</button>
  27.    Please check your UserName and Password
  28.     </div>
  29. <?php }
  30.  
  31. }
  32.  
  33. ?>