I have the following PHP query code:
$theirTable = $dbcon->query("SELECT * FROM dogbreed");
$theirRow = $theirTable->fetch_assoc();
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:
<?php
while ($fow = $theirRow){
echo $fow['dogtype'];
}
?>
This code proves problematic, as it repeats the first response endlessly. So I end up getting a result like dobermandobermandobermandobermandoberman
continously. Not sure what my problem is from a logic standpoint.