我想知道如何将数组变量存储到选择查询中,以及是否可以在 while 循环中包含以下内容。提前致谢。
例如:
$roww = array();
while ($roww = $resultt->fetch_assoc()) {
$uery = $dbconn->prepare("SELECT user_ids FROM t_friendship WHERE friend_ids = $roww['id'] AND status = 'Pending'");
$uery->execute();
$uery->store_result();
$rows = $uery->num_rows;}