2
我將嘗試得分升序排序表。表中排序數據按列MySQL和WordPress的
下面是表:
這裏是我使用
$sql = "SELECT * FROM scores";
$myData = mysql_query($sql);
echo "<table class='table table-hover table-bordered table-striped'>
<tr>
<th>Username</th>
<th>Email</th>
<th>Score</th>
</tr>";
while($record = mysql_fetch_array($myData)) {
echo "<tr>";
echo "<td>" . $record['id'] . "</td>";
echo "<td>" . urldecode($record['email']) . "</td>";
echo "<td>" . $record['score'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
<?php
$str="@";
echo htmlentities($str);
?>
使用ORDER的順序按您的查詢。 –
這個問題不應該被要求,在谷歌2分鐘,你會發現你的答案堆棧溢出不是一個「我不能arsed找我去到這麼問上」的心態。它會帶你們更多的時間來寫這帖子比https://www.google.co.uk/search?q=Mysql+order&oq=Mysql+order&aqs=chrome..69i57j0l5.5184j0j7&sourceid=chrome&ie=UTF-8爲回答 –