Parse error: syntax error, unexpected '$ind' (T
This question already has an answer here:
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.
上一篇: 解析错误:语法错误,意外的T