简体   繁体   中英

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.

.....在哪里登录名IN('a','b','c')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM