$query = mysql_query("SELECT * FROM table where user=$user && password=$password");
$query = mysql_query("SELECT * FROM table where user='$user' and password='$password'");