« ;
$rqt_pts=$wpdb->get_results(« SELECT S.ID, S.Points, S.Games, P.ID, P.Name, P.CurrentTeam, P.PositionNumber, S.Points/S.Games as PPG
FROM SeasonStats S, Player P
WHERE P.Experience = 0 AND P.ID = S.ID AND S.League = 1 AND S.Season = (SELECT MAX(Season) From SeasonStats)
ORDER BY PPG DESC »);
echo «
« ;
$rang=1;
foreach ($rqt_pts as $row)
{
$couleur = ($compteur % 2 == 0) ? » : ‘#eee’;
echo’
echo ‘
‘;
echo’
‘;
echo ‘
$lien = « http://www.hnblnba.fr/player/?id= »;
$lien .= $row->ID;
$nomJr = $row->Name;
echo simple_popup_link($lien,$nomJr);
echo ‘
‘;
echo’
‘;
echo ‘
‘;
$compteur++;
$rang++;
}
echo «
« ;//fin tableau +/-