我有一个错误这句话: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