I have this select:
$stmt = $mysqli->prepare("select following from following where user =? and block=0");
$stmt->bind_param('i', $user);
$stmt->execute();
$stmt->bind_result($followers);
$stmt->fetch();
$stmt->close();
I'd like to use $followers in another mysql conection:
select... from ... where (p.user in (?))
in this ?
I'd like to place the $followers variable in mysql in format. (1,5,7,2).
Any ideas how to convert the bind_result $followers into this mysql in format?