« ;
$result_rbds=$wpdb->get_results(« SELECT S.ID, S.OffensiveRebounds, S.Games, P.ID, P.Name, P.CurrentTeam, P.PositionNumber, S.OffensiveRebounds/S.Games as RPG
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 RPG DESC »);
echo «
« ;
$rang=1;
foreach ($result_rbds 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 +/-