我需要在ASC訂單中訂購number
字段,但它不起作用。PHP MySQL按照Where子句訂購
$sThree = "SELECT `id`, `name`, `number`, `logo` FROM `itv` WHERE `id` = {$rTwoArray['service_id']} ORDER BY `number` ASC";
$qThree = mysql_query($sThree, $conn1);
$rThree[] = mysql_fetch_assoc($qThree);
無法弄清楚,請幫我調試。
mysql中'number'字段的數據類型是什麼? – Viral
@病毒編號字段是int(11) –
您是否嘗試手動運行查詢? – Manwal