Hi everybody, quick question here.
I am getting this error Parse error: syntax error, unexpected $end in /xxxxx/xxxx/top_players.php on line 29
<?php '<ul>';
$sql = mysql_query("SELECT * FROM ava_users ORDER BY 0+points desc LIMIT $template[homepage_topplayers_limit]");
while($row = mysql_fetch_array($sql)) {
'<div align="center">'.$name = shortenStr($row['username'], 13);
$username = htmlspecialchars($name);
$url = ProfileUrl($row['id'], $row['seo_url']);
if ($setting['module_thumbs'] == 1) {
$avatar = '<img alt="'.$name.'" src="'.AvatarUrl($row['avatar'], $row['facebook'], $row['facebook_id']).'" width="64" height="64" />';
}
else {
$avatar = '';
}
echo $avatar.' <div class="top_players_info"> <a href="'.$url.'">'.$username.'</a>';
if ($row['points'] != '') {
echo $row['points'].' '.PTS.'"</div>" "</div>";
}
}
"<'/ul>";
}
php?>
I've been editing this bit of code for a while, stripping out unwanted properties
I appreciate any help 🙂