I wanted to know how I can store an array variable into a select query, and if its okay to have the following inside a while loop. Thanks in advance.
For example:
$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;}