Code: Select all
mysql_query($sql,$con)
Code: Select all
mysql_query($sql)
there are a few things i would try to resolve this issue firstly put your table and field names inside ` `
Code: Select all
$sql="SELECT * FROM `user` WHERE `LoginName`='$myusername' AND `Password`='$mypassword'";