title: Query 2 databases on a query
body: <p>I want to ask, how do I make data appear on my friend's column page?</p>
  
  <pre><code>    $frnd = $conn-&gt;query("SELECT * FROM `friend` WHERE id = '".$_SESSION['uid']."' LIMIT 7");
  
      while($friend = mysqli_fetch_assoc($sql)){
          echo "'.$idu.'";
          echo "'.$name.'";
      }
  
  </code></pre>
  
  <p>I can't find, maybe a friend here can help me?</p>
  
  <p><a href="https://i.stack.imgur.com/l48vu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l48vu.png" alt=""></a></p>