Php : oh so confused

Ok. Im just learning php, so bear with me.

I’m getting this error…

Parse error: parse error, unexpected T_VARIABLE in c:\Inetpub\wwwroot\adcore\login.php on line 11

withthis code…

if (isset($_POST[“log_in”])) {
require_once("…/adcore.php")
$check = mysql_query(“select id, username, password from members where username=”.$_POST[“username”].";", $conn) or die(mysql_error();
if($_POST[“password”] == mysql_result($check,0,“password”){
$_SESSION[“uid”] = 1;//mysql_result($check,0,“id”);
$_SESSION[“username”] = “Paul”;//mysql_result($check,0,“username”);
$_SESSION[“credits”] = 0;
header(“Location: earn.php”);
}else{
header(“Location: login.php?var=invalid”);
}
}

Line 11 being…$check = mysql_query(“select id, username, password from members where username=”.$_POST[“username”].";", $conn) or die(mysql_error();

im so confused :frowning:
-Naaman