Thanks for taking the time to read this, I’m a beginner with php, so please be gentle
I am currently getting this: Parse error: syntax error, unexpected $end in /home/anon/public_html/templates/bumble_bee/mods/top_players.php on line 29
[php]<?php ‘
- ’;
$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?>[/php]