I have some dynamic html and wants a new line, i.e. <br>
tag after each <img>
tag.
for ($i=1; $i < mysqli_num_rows($result_p); $i++){
$row_p = mysqli_fetch_array($result_p);
echo "<img id='". $i . "' src='". $row_p['url'] ."' width='200' height='200' alt='img'>";
echo "<br>"; // doesn't work
}
I checked the resulting html markup on W3C validation service - there is no error, but <br>
tag still doesn't work.