PHP 和 MySQL 排名
PHP and MySQL Ranking
我在 MySQL 中有这个 table:
id | name | points
1 | John | 9
2 | Bart | 7
3 | Billy | 14
我想在 HTML / PHP 中有一个 table,他在其中打印:
Name Points
Billy 14
John 9
Bart 7
我该怎么办?
尝试这样的查询:
SELECT name, points FROM your_table ORDER BY points DESC
我在 MySQL 中有这个 table:
id | name | points
1 | John | 9
2 | Bart | 7
3 | Billy | 14
我想在 HTML / PHP 中有一个 table,他在其中打印:
Name Points
Billy 14
John 9
Bart 7
我该怎么办?
尝试这样的查询:
SELECT name, points FROM your_table ORDER BY points DESC