Jump to content

Sorting MYSQl table ascending


dink87522

Recommended Posts

I am using

$query = "SELECT * FROM Highscores ORDER BY score DESC"; 

to select data from a table called highscores and a field called scores. I wish to sort the data in descending order (i.e. highest value first).

 

It sort of works, ie.: it does:

9

8

7

6

5

4

3

2

13

12

11

1 etc, how do I make 11, 12, 13 show at the top?

 

Link to comment
https://forums.phpfreaks.com/topic/172510-sorting-mysql-table-ascending/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.