我在数据库中有一个名为 members 的表
我在这个表中有一个名为以下的字段
该字段包含这样的数据
,marck,nancy,sarah
当我得到关注时,我使用此代码
$select_me = $mysqli->query("SELECT * FROM members where username='admin'");
$rows_me = $select_me->fetch_array(MYSQL_ASSOC);
$following_me = $rows_me['following'];
$ar_member = explode(",",$following_me);
$name_follwing = implode("','",$ar_member)."";
$select_following = $mysqli->query("SELECT * FROM members WHERE username IN ('$name_follwing')");
$num_following = $select_following->num_rows;
echo $num_following;
如何通过 sql 获得会员关注者?
谢谢