Jump to content


This topic is now archived and is closed to further replies.


Multi SQL Statment Trouble

Recommended Posts



$uid = $_GET['uid'];


What im trying to do is make it so if $uid  is equal to either UserID or FriendID. The Status = 1 also has to be 1 (for confirmed) for it to echo, it seems to be working fine when i test with $uid = 1; other then, if its the same sequence such as row 7 and 8 (on pastebin link) with userid 6 friendid 1 status 1 it shows it twice, but if theres a situation where theres 6 1 1 and 1 6 1, it does it just shows one how it should.


So why is it that if there is a double entry it causes this problem?

Share this post

Link to post
Share on other sites

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