0 and id > 69 ORDER BY total DESC, user_name ASC"; $result=mysql_query($query); if(mysql_num_rows($result) != 0) { $count = 1; echo ("\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t"); echo ("\n\t\t\t\n\n\t\t\t\n\n\t\t\t\n"); while($row = mysql_fetch_array($result)) { list($name, $subtot, $bonus, $total, $prize) = $row; echo ("\t\t\t\n\t\t\t\t\n\t\t\t\t\n"); echo ("\t\t\t\t\n\t\t\t\t" . $bonus . "\n\t\t\t\t\n\t\t\t\n"); $count = $count + 1;} echo ("\t\t
PlaceNickSubtotalBonus
Score
Total
Score
" . $place . "" . str_replace(" ", "
", $name) . "
" . $subtot . "" . $total . "
\n"); } ?>