How to get the six largest values out of the database? Why then this does not work and displays in the form?
555553 422154 35355353 300 1234134 123412
Here is the code that fetches
$query = "SELECT * FROM `DBTop` ORDER BY `col_vo` DESC LIMIT 6"; $TOP = mysql_query($query, $db) or die(mysql_error()); if(mysql_num_rows($TOP) > 5){ while($sTOP = mysql_fetch_assoc($TOP)){ echo $sTOP['col_vo'] . "<br />"; } } else { echo 'лол'; }