Jump to content

OR function


mcmuney

Recommended Posts

When I add OR function to this query, it doesn't work, what am I doing wrong?

ORIGINAL
[code]
$sel_image="select scm_mem_id,sci_url FROM sc_member_images WHERE sci_slogan<>'M' ORDER BY sci_id DESC";
[/code]

WITH OR STATEMENT
[code]
$sel_image="select scm_mem_id,sci_url FROM sc_member_images WHERE (sci_slogan<>'M' OR sci_slogan<>'D') ORDER BY sci_id DESC";
[/code]
Link to comment
https://forums.phpfreaks.com/topic/22402-or-function/
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.