title: How to display data from a particular column across all row and loop it on a <p> tag?
body: <p>I want to display data from all rows only for the column named 'text_notes' from my db.
  And I want to loop that data in a p tag so that all data from column text_notes is displayed one by one till the end. </p>
  
  <p>Below is the code I tried but it displays all the columns of the latest row and doesn't display the other rows.</p>
  
  <p>I want the data from column 'text_notes' from all the rows to be displayed from latest at the bottom to the oldest at the top.</p>
  
  <pre><code>&lt;?php
            $query = "SELECT * FROM notes";
            $conn = new mysqli(DBROOT,DBUSER,DBPASS);
            $conn-&gt;select_db(DBNAME);
  
            if ($conn == TRUE) {
  
            $runQuery = $conn-&gt;query($query);
            $resultNum = $runQuery-&gt;num_rows;
            $result = $runQuery-&gt;fetch_array();
            $resultRow = mysqli_fetch_row($runQuery);
            $notes = $result['text_notes'];
  
  
            for ($i = 0; $i &lt; $resultNum;) {
  
              echo "&lt;p&gt;".$resultRow[$i]."&lt;/p&gt;";
  
              $i++;
  
            }
  
            }
          ?&gt;
  </code></pre>