Jump to content

Recommended Posts

http://pastebin.com/m5b366980

 

$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?

Link to comment
https://forums.phpfreaks.com/topic/65529-multi-sql-statment-trouble/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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