Quote Originally Posted by ravi951 View Post
if i remove echo $message every time it is re directing to header("Location:login3.php");
why it is used for
Because that's what your code is set up to do when $rows is 0

Code php:
if ($rows > 0) { 
    ...
} else { 
    //unsuccessful login 
    header("Location:login3.php");
    exit; 
}