sungpeng Posted December 25, 2015 Share Posted December 25, 2015 where numbers=$numbers and (day=1 or day=2 or day=3 or day=4) Is there a shorter line for day = 1 to 4 instead of day=1 or day=2 or day=3 or day=4 ? Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted December 25, 2015 Share Posted December 25, 2015 if you are asking about a mysql query statement, a short version for multiple OR's would be - day IN(1,2,3,4) Quote Link to comment Share on other sites More sharing options...
sungpeng Posted December 25, 2015 Author Share Posted December 25, 2015 thk Quote Link to comment Share on other sites More sharing options...
benanamen Posted December 25, 2015 Share Posted December 25, 2015 day BETWEEN 1 AND 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.