我有一個錯誤這句話:MySQL查詢錯誤
...
WHERE title LIKE '%$title%' OR text LIKE '%$title%'
AND (price BETWEEN $minprice AND $maxprice)
AND catid = $catid ORDER BY id DESC
錯誤:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND) AND cat' at line 34
我做錯了什麼?
短暫地看一下你的專家沒有透露任何錯誤的我。也許你應該發佈完整的查詢,尤其是擴展變量。 – Raffael 2011-02-15 10:15:21
你在40秒內得到了三個相同的答案! – Nishant 2011-02-15 10:16:13