Parse error: syntax error, unexpected '$ind' (T

This question already has an answer here:

  • PHP parse/syntax errors; and how to solve them? 13 answers

  • You have a syntax error here :

    $sql = 'SELECT * FROM `student` WHERE `Index No.` = '$se'';
    

    change to

    $sql = 'SELECT * FROM `student` WHERE `Index No.` = "'.$se.'"';
    

    Please have a look to : PHP Parse/Syntax Errors; and How to solve them?

    And,

    WARNING: Your code is vulnerable to SQL injections and may compromise the security of your database and server. You should use PDO or mysqli APIs to secure your SQL queries, and using prepare function.

    链接地址: http://www.djcxy.com/p/69608.html

    上一篇: 解析错误:语法错误,意外的T

    下一篇: 解析错误:语法错误,意外的'$ ind'(T