彼ら。私は次のスクリプトを持っています
<?php
$result = mysql_query("SELECT * FROM players") or die(mysql_error());
echo "<table class=\"table table-bordered table-hover\" border='1' cellpadding='10'>";
echo "<tr> <th>ID</th> <th>Place</th> <th>Name</th> <th>Points</th> <th></th> <th></th></tr>";
// loop through results of database query, displaying them in the table
while($row = mysql_fetch_array( $result )) {
// echo out the contents of each row into a table
echo "<tr>";
echo '<td>' . $row['id'] . '</td>';
echo '<td>' . $row['place'] . '</td>';
echo '<td>' . $row['name'] . '</td>';
echo '<td>' . $row['points'] . '</td>';
echo '<td><a href="wtawomenedit.php?id=' . $row['id'] . '">Edit</a></td>';
echo '<td><a href="deleter.php?id=' . $row['id'] . '">Delete</a></td>';
echo "</tr>";
}
// close table>
echo "</table>";
?>
このスクリプトはMySQLテーブルのすべてのコンテンツを表示していますが、行が混在しているため、これをrangリストに使用しているので、ポイントでフィルタリングされた行を表示したいと思います。高いポイントの行が最初になります。よろしくお願いします、私は何もしていません。以前のように、それを機能させる方法がわかりません。