php unexpected t_echo,php – 解析错误:语法错误,意外T_ECHO

导致此错误的原因是什么?

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

RankUsernameGold

$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");

?>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值