Jump to content

how to SELECT by NOT?


ivytony

Recommended Posts

This is my SQL:

 

"SELECT count(*) FROM links where `link_title` = '$link->title' and `link_field` = '$link->author' and `link_status` != 'discarded'"

 

I want to filter out the entries labeled with 'discarded' in the link_status column. Right now, `link_status` != 'discarded' doesn't really work for me. I am wondering how to filter out the discarded-labeled entries.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/94068-how-to-select-by-not/
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.