我总是收到此错误消息:
Parse error: syntax error, unexpected T_STRING in /myroot/public_html/test.php on line 5
这是第 5 行的样子:
$sql = mysql_query("SELECT date_format(active,'%a/%b/%Y') AS active FROM members")
or die mysql_error();
我从另一个 stackoverflow 问题复制代码时找不到任何问题
这是整个脚本:
$sql = mysql_query("SELECT date_format(active,'%a/%b/%Y') AS active FROM members" )
或死 mysql_error();
while ($results = mysql_fetch_assoc($sql)) {
$date = $results["active"];
$user = $results["user"];
}