title: How to fetch all of my selected data and echo it with a while loop? Only fetching one record
body: <pre><code>$sqlWork = "SELECT * FROM work WHERE user_id = '$_SESSION[user_id]'";     
  $resultWork = $connection-&gt;query($sqlWork);
  $rowWork = $resultWork-&gt;fetch_assoc();
  </code></pre>
  
  <h2>I currently have this table.</h2>
  
  <p>(I would add an image if I had the reputation)</p>
  
  <p><a href="http://imgur.com/fEYrzY0" rel="nofollow">http://imgur.com/fEYrzY0</a></p>
  
  <h2>This is how I am outputting my data.</h2>
  
  <pre><code>    do {         
          echo "{$rowWork['work']}";     
      } while ($description = mysqli_fetch_array($resultWork));
  </code></pre>