解析错误:语法错误,意外' $ email' (T_VARIABLE)在第7行的C:\ xampp \ htdocs \ instagram \ login.php中

时间:2018-03-30 23:12:07

标签: mysqli

错误

Parse error: syntax error, unexpected '$email' (T_VARIABLE) in C:\xampp\htdocs\instagram\login.php on line 7

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试用以下代码替换第7行:

$verificar = mysqli_query("Select * From users Where email = '$email' And password = '$pass'");

我认为问题是你的单引号互相干扰。也是Select = From有效的SQL?我从未见过那种选择。