Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.