Warning: Cannot modify header information – headers already sent by (output started at C:\wamp\www\soudra\admin\inc\header.php:157) in C:\wamp\www\soudra\lib\Session.php on line 55

  PHP

Email

never echo ANYTHING before HEADER, so remove those ECHO $USER, $PASSWORD

Tip 1-> Use mysqli instead of mysql
Tip 2-> Use prepared statement
Tip 3-> Use mysql_real_escape_string()

if($num_row >0) 
{
 if($user == $userid) 
 {
  .... 
  header("Location: CustomerMaster.php");
 }
 else
 {
  header("Location: index.php?msg=2");
  exit();
 }
}   
else
   header("Location: index.php?msg=1");
?>
Spread the Code

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of