title: PHP echo with database $rows and an a href link inside of an <li>
body: <p>I need help in the proper syntax to enable an a href inside of a PHP echo that list out database $row fields?</p>
  
  <p>Here is my php:</p>
  
  <pre><code>&lt;?php
  $sql = "SELECT * FROM users";
  $result = mysqli_query($db_conx, $sql);
  while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
  $u = $row["username"];
  
  echo "&lt;li&gt;". $row['avatar']. '&amp;nbsp'. $row['firstname']. '&amp;nbsp' .$row['lastname'] ."&lt;/li&gt;";
  }
  
  
  Here is my a href code: 
  &lt;a href="user.php?u=$u.&gt;
  
  ?&gt;
  </code></pre>
  
  <p>The question is: How do I get the ahref inside the echo<li> with proper sequence? I believe it has to do with escaping the '.", but for the life of me, I can't get it to work. Any help would be greatly appreciated!</p>