12.06.2011, 01:12
You can create something by your description by using the ORDER BY SQL syntax. Here's an example of how it's used if you don't understand the given link.
PHP код:
$order_query = mysql_query( "SELECT * FROM `accounts` ORDER BY `kills` LIMIT 5" );
while($order_fetch = mysql_fetch_assoc( $order_query ) )
echo( $order_fetch['username'] . ":" . $order_fetch['kills'] . " kills. <br />" ) ;