Jack Billy
Jack Billy

Reputation: 7211

MYSQL multiple query in where clause

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.

Upvotes: 0

Views: 439

Answers (1)

Lasse Edsvik
Lasse Edsvik

Reputation: 9298

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

Upvotes: 2

Related Questions