Why does the following code work to print an array of mysql rows
$base=new mysqli("...");
$query="SELECT *somthing* FROM *table* WHERE *some match*";
$result=$base->query($query);
while ($row=$result->fetch_assoc()) {
var_dump($row);
};
, while this one get's trapped repeatedly printing the first match?
$base=new mysqli("...");
$query="SELECT *somthing* FROM *table* WHERE *some match*";
while ($row=$base->query($query)->fetch_assoc()) {
var_dump($row);
};