Running multiple queries in loop, and building multidimensional array
问题 I'm building a stream of data based on users a user is following. While I have a working prototype, the code seems unnecessarily ugly with multiple loops with further queries nested in them. I was wondering if I could get any advice on simplifying this, possible handling more within the sql query itself? On with some code: (I've trimmed this down a little and removed some of the rows retrieved). $init = $conn->prepare("SELECT followerid FROM following WHERE userid=?"); $init->bind_param("s",