PHP looping through MySQL array : <p>I have the following <strong>PHP query code</strong>:</p>

<pre><code>$theirTable = $dbcon-&gt;query("SELECT * FROM dogbreed");
$theirRow = $theirTable-&gt;fetch_assoc();
</code></pre>

<p>I am trying to understand the correct method for displaying all records in my chosen table in a loop. My request is done like so:</p>

<pre><code>            &lt;?php
                while ($fow = $theirRow){
                    echo $fow['dogtype'];
                }
            ?&gt; 
</code></pre>

<p>This code proves problematic, as it repeats the first response endlessly. So I end up getting a result like <code>dobermandobermandobermandobermandoberman</code>continously. Not sure what my problem is from a logic standpoint. </p>
