php - select similar value from MySQL and order the result -


How do I order this result?

  $ range = 5; // You will select around this range $ min = $ rank - $ range; $ Max = $ rank + $ border; $ Range = 10; // Maximum results should you select $ Result = mysql_query ("Select from the table, where $ Minute and $ Maximize Range Between $ Limit"); While ($ line = mysql_fetch_array ($ result)) {echo $ line ['name']. "& Amp; nbsp; - & amp; nbsp;". $ Line ['rank']. "& Lt; br & gt;"; } "Order" - use the section:  
   

mysql_query ("Select * from the table, where rank range ranges between $ $ to $ minimum and $ maximum order");

This will order your results from very low values ​​to order in the follow direction, use "order based on sequence" (larger -> small)


Comments