Offensive Rebounds per game Rookies

« ;
$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 « 

# Pos Player Team Rpg

« ;
$rang=1;
foreach ($result_rbds as $row)
{
$couleur = ($compteur % 2 == 0) ?  » : ‘#eee’;
echo’

‘;
echo ‘

‘.$rang.’

‘;
echo’

‘.position($row->PositionNumber).’

‘;
echo ‘

‘;
$lien = « http://www.hnblnba.fr/player/?id= »;
$lien .= $row->ID;
$nomJr = $row->Name;
echo simple_popup_link($lien,$nomJr);
echo ‘

‘;
echo’

‘;?>‘.number_format($row->RPG,1, ‘,’, ‘ ‘).’

‘;
echo ‘

‘;
$compteur++;
$rang++;
}
echo « 

« ;//fin tableau +/-