I have a field in the database called "Quantity". How do I find the 10 most highest numbers, then display them on a rating of 1-10. 1being the highest, and 10 being the lowest.
The following code creates the numbers 1-10.
for ($i = '1'; ; $i++)
{
echo $i . '<br>';
if ($i == "10")
{
echo '<br><br>';
break;
}
}