![]() |
PHP complex WHERE statement
Hello,
Below is the code i am talking about: PHP Code:
AND visible = 1between OR lineID LIKE '%".$q."%'and ORDER BY `lineID` DESC LIMIT 0 , 10");however this has not worked. |
Assuming you want any of your like conditions to be satisfied only if visible is 1 then wrap the logic you already have in parenthesis then add the visible = 1 as shown below.
PHP Code:
|
Cheers for that... Wasn't aware I could use parenthesis in select statements.
Sorted! |
| All times are GMT +1. The time now is 12:34 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.