i have done a login form but its giving error :9 can somwan help me
index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Login Panel</title>
</head>
<body>
<form action="login.php" method="POST">
Username : <input type="text" name="username" >
Password : <input type="text" name="password" >
<input type="submit" value="Login">
</form>
</body>
</html>
login.php
<?php
$username = $_POST['username'];
$password = $_POST['password'];
if($username&&$password)
{
$conect = mysql_connect("localhost","danvrajmas","nokia3110")or die("Error");
mysql_select_db("user")or die("Error");
$query = mysql_query("SELECT * FROM user WHERE username='$username'")or die("Error");
$numrows = mysql_num_rows($query);
if ($numrows!=0)
{
while ($row = mysql_fetch_assoc($query));
{
$dbusername = $row["username"];
$dbpassword = $row["password"];
}
if($username==$dbusername&&$password==$dbpassword)
{
echo "You're in !";
}
else
die("Incorect Password !");
}
else
die("This user doesn't exist !");
}
else
die("Enter a user name and password !");
?>