因此,我嘗試使用ORDER BY,但無法使其工作。我想訂購帳戶名的字母順序如何在.php(mysql)中按字母順序排列
$field1=mysql_result($result,$i,"id");
$field2=mysql_result($result,$i,"steamId");
$field3=mysql_result($result,$i,"accountName");
$query2="SELECT * FROM Times WHERE steamId='$field2'";
$result2=mysql_query($query2);
$field4=mysql_numrows($result2);
只是想簡單的A-Z
檢查ORDER BY ASC/DESC – Naeem