testing,
$res = mysql_query("SELECT DISTINCT `test`.`id`, `test`.* FROM `test` ORDER BY `ball` DESC ");
while ($row = mysql_fetch_assoc($res)){
echo $row['id'];
echo $row['ball'];
}так может? вообще как то по другому нужно )
testing,
$res = mysql_query("SELECT DISTINCT `test`.`id`, `test`.* FROM `test` ORDER BY `ball` DESC ");
while ($row = mysql_fetch_assoc($res)){
echo $row['id'];
echo $row['ball'];
}