i have this code in my login, then i tried to input my password for example my real password is "Reymar25", but when i enter "reymar25" it logins, it should not proceed in the other page. , please help me to resove this.. THANK You
<?php
include('dbconnection.php');
if (isset($_POST['submit']))
{
$username = $_POST['username'];$password = $_POST['password'];
$query = mysql_query("SELECT * FROM tbl_user username = '".$username."' AND password = '".$password."' LIMIT 1");
//("SELECT * FROM tbl_user WHERE username = '".$username."' AND password = '".$password."' LIMIT 1");
if (mysql_num_rows($query) == 1)
{
$row = mysql_fetch_array($query);
header("Location: index1.php"); // Modify to go to the page you would like
exit;
}
else
{
header("Location: loginform.php");
echo "Please Check Username or Password!";
exit();
}
}
?>