newbee i get the following error in the below mentioned code:
Parse error: parse error in C:\wamp\www\webdesigning1\webdesigning1\loginsession\login.php on line 25
<?php
$username = $_post ['username'];
$password = $_post ['password'];
if ($username&&$password)
{
$connect = mysql_connect {"localhost","root","webdesigning1") or die ("couldnt connect to mysql data base ");
mysql_select_db("phplogin") or die("couldnt find db") ;
}
else
echo("enter username and password");
$query = mysql_query "SELECT * FROM `users` WHERE username =\'$username\'";
$numrows = mysql_num_rows($query);
if ($numrows!=0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbusername=$row['username'];
$dbpassword=$row['password'];
}
if
($username==$username&&$password==$password)
{
echo "You r in";
}
exit
?>