导致此错误的原因是什么?
Parse error: syntax error, unexpected T_ECHO in C:\wamp\www\game\rankings.php on line 19
这是代码
session_start();
include("header.php");
if(!isset($_SESSION['uid'])) {
echo "You must be logged in to view this page";
}else{
?>
Battle Players
Rank | Username | Gold |
$get_users = mysql_query("SELECT `id`,`overall` FROM `ranking` WHERE `overall`>'0' ORDER BY `overall` ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($get_users)) { var_dump($row)
echo "
";echo "
". $row['overall']. "";$get_user = mysql_query("SELECT `username` FROM `user` WHERE `id`='".$row['id']."'") or die(mysql_error());
$rank_name = mysql_fetch_assoc($get_user);
echo "
" . $rank_name['username'] . "";$get_gold = mysql_query("SELECT `gold` FROM `stats` WHERE `id`='".$row['id']."'") or die(mysql_error());
$rank_gold = mysql_fetch_assoc($get_gold);
echo "
" . number_format($rank_gold['gold']) . "";echo "
";}
?>
}
include("footer.php");
?>