TEENFRONT Posted September 23, 2010 Share Posted September 23, 2010 Hey Looking for a quicker way to do this query, im selecting posts from a forum and have around 15 IDs that i want to pull from, so instead of typing fid = '1' OR fid = '2' OR fid = '3' etc etc Is there a quick way to specify a range? like fid = '1-15' ? Many Thanks! Link to comment https://forums.phpfreaks.com/topic/214153-better-way-instead-of-lots-of-or-and-ands/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 23, 2010 Share Posted September 23, 2010 WHERE fid BETWEEN 1 AND 15 Link to comment https://forums.phpfreaks.com/topic/214153-better-way-instead-of-lots-of-or-and-ands/#findComment-1114330 Share on other sites More sharing options...
TEENFRONT Posted September 23, 2010 Author Share Posted September 23, 2010 Excellent that the one! lol, Obvious i suppose. I really appreciate the help many thanks. Link to comment https://forums.phpfreaks.com/topic/214153-better-way-instead-of-lots-of-or-and-ands/#findComment-1114332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.