Home »

I get an error with my PHP script, "Unexpected T_STRING". Could someone take a look at why this happens?

Question ListCategory: PHPI get an error with my PHP script, "Unexpected T_STRING". Could someone take a look at why this happens?
jeanderson295 author asked 9 years ago
1 Answers
alisataylore190 author answered 9 years ago

$checkusrdel = mysql_query(“SELECT * FROM craffyusers WHERE
username = ‘”.$un9.”‘) or die(mysql_error());
if(mysql_num_rows($checkusrdel) != 0){
$acdel = “n”;
}else{
$acdel = “y”;
};
if(empty($tip)){
$bank = “account ban”;
}else if($acdel == “y”){
$bank = “account deleted + IP ban”;
}else{
$bank = “account ban + IP ban”;
};
You should check the line on which the error occurs. You are
missing a closing double quote on this line:
Right line :
$checkusrdel = mysql_query(“SELECT * FROM craffyusers WHERE
username = ‘”.$un9.”‘”) or die(mysql_error());

Please login or Register to Submit Answer