How to fix "Unexpected T
This question already has an answer here:
Try this one
$link = mysql_query(sprintf(
"SELECT * FROM users WHERE id='%s' AND password='%s'",
mysql_real_escape_string($_SESSION['MM_Username']),
mysql_real_escape_string($_SESSION['MM_PASSWORD']),
));
It will help you to avoid sql-injection. And please don't use mysql_
functions as it were mentioned in comments
$link = mysql_query("SELECT * FROM users WHERE id='{$_SESSION['MM_Username']}' AND password='{$_SESSION['MM_PASSWORD']}'");
链接地址: http://www.djcxy.com/p/69938.html
上一篇: SESSION [ '你们']“;
下一篇: 如何解决“意外的T