0

See I have the following mysql code----

" SELECT * FROM members WHERE login_name='" . $_SESSION['SESS_LOGIN'] . "' "

But I want to include other login names too. For example this user's friends login name to show the posts of them also.

2
  • 2
    That query has nothing to do with posts. Nor does it have anything to do with friends... How do we know who is friends with who? Commented Mar 11, 2011 at 7:08
  • That is other script that generates friends login name in a session array! Commented Mar 11, 2011 at 7:15

1 Answer 1

2

..... WHERE login_name IN ('a', 'b', 'c')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.