<?
    
    mysql_connect
("localhost","root","@14012518");
    
mysql_select_db("manage");
    
$strSQL "SELECT * FROM user_tb WHERE Username = '".trim($_POST['txtUsername'])."' 
    and PasswordR = '"
.trim($_POST['txtPassword'])."'";
    
$objQuery mysql_query($strSQL);
    
$objResult mysql_fetch_array($objQuery);
    if(!
$objResult)
    {
            echo 
"Username and Password Incorrect!";
    }
    else
    {            
    
                
header("location:http://www.bcnu.ac.th/teacher/BCNUIntranet/");
            }

    
mysql_close();
?>