Jump to content

AND/OR Function


mcmuney

Recommended Posts

I need to make the where statement below and make it where the reverse is also possible, can someone help with rewriting the statement. It basically needs to be WHERE x=1 AND y=2 OR x=2 AND y=1 (it should look for either of these possibilities):

[code]
$query="select * from `sc_friend` where (scf_mem_id={$R}) and (scf_frnd_id={$social_mem_id})";
[/code]
Link to comment
https://forums.phpfreaks.com/topic/23125-andor-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.