Jump to content

Opposite of IN Statement


habib009pk

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/209758-opposite-of-in-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.