doubaoguo7469 2019-04-18 07:21
浏览 34
已采纳

用于串联字符串的PHP语法错误。 运营商[关闭]

I know its a silly question, but I can't get around with it, I am new to php:

$sqlCheckUser = "SELECT * FROM `user` where `email` = '".  .$email ."' OR `username` = '". .$username ."'";

This line is giving this error : syntax error, unexpected '.'

Can someone please help why is this giving error in VS code, also I've declared all the variables mentioned. Thanks

  • 写回答

3条回答 默认 最新

  • dsvq5069 2019-04-18 07:25
    关注

    try this query:

    $sqlCheckUser = "SELECT * FROM `user` where `email` = '".$email ."' OR `username` = '".$username ."'";
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?