habib009pk Posted August 4, 2010 Share Posted August 4, 2010 Dear friends, I am facing a problem I am working on cars project there is a transmission feilds, these transmission values depends on different different values i.e 'CA','FA','AT','FAT','CAT','IAT','SQ' Now I have two options in searh criteria either I want to get records having these transmission values and these values aur automatic (AT). And other is Manual (MT). When client select At values then following query will be executed: $where.=" AND transmission_en IN ($str)"; and it is working very well, Now I want to get records other then these values so kindly tell me which sql comman can be use through which can i get the the records other then these values. Simply says (Not IN ($str)); Waiting for your reply Best Regards Habib Quote Link to comment https://forums.phpfreaks.com/topic/209758-opposite-of-in-statement/ Share on other sites More sharing options...
bh Posted August 4, 2010 Share Posted August 4, 2010 Hi, Whats wrong with the "NOT IN"? Its working very well. Quote Link to comment https://forums.phpfreaks.com/topic/209758-opposite-of-in-statement/#findComment-1094994 Share on other sites More sharing options...
habib009pk Posted August 4, 2010 Author Share Posted August 4, 2010 Yes it is working, thanks Quote Link to comment https://forums.phpfreaks.com/topic/209758-opposite-of-in-statement/#findComment-1095011 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.