Jump to content

propper way to white OR


flemingmike

Recommended Posts

Shouldn't that be:

$result4 = mysql_query("SELECT * FROM schedule WHERE eid = '$posteid' AND (status = 1 OR status = 2)");

 

Otherwise you get all rows where eid == $posteid AND status == 1

along with the rows where status == 2 (regardless of the value of eid)

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.