title: How to echo each row from mySQLi query using PHP?
body: <p>The following query returns all rows from the campaign table that have the user_id of 1:</p>
  
  <pre><code>SELECT * FROM campaign WHERE user_id=1
  </code></pre>
  
  <p>In the case of testing this is two results. How would I be able to echo a set column from each of the rows. For example, I want to echo the campaign_name from each of the results. I have tried various methods however, I have had no success.</p>
  
  <p>My end goal would be something like this:</p>
  
  <pre><code> &lt;?php foreach($queryRow as $row) { ?&gt;
                           &lt;li&gt;
                              &lt;a&gt;
                                  &lt;div&gt;
                                      &lt;p&gt;&lt;?php echo($row['campaign_name']); ?&gt;&lt;/p&gt;
                                      &lt;p&gt;
                                          Description Text
                                      &lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/a&gt;
                          &lt;/li&gt;
   &lt;?php } ?&gt;
  </code></pre>
  
  <p>I'm quite at lost with this so I apologise if my intended result is completely off...</p>