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为回答 –