$sql = "SELECT *
FROM listing
WHERE (MATCH(dir_heading)
AGAINST ('$wtfld' IN BOOLEAN MODE)) AND busns_suburb LIKE '%".$whrfld."%' " ;
我想在此代码中添加ORDER BY
,但无法正确实现。
答案 0 :(得分:0)
如我在上面的评论中所述,请按照where子句添加顺序:
$sql = "SELECT *
FROM listing
WHERE (MATCH(dir_heading)
AGAINST ('$wtfld' IN BOOLEAN MODE)) AND busns_suburb LIKE '%".$whrfld."%'
ORDER BY busns_name;" ;