I'm trying to get a page break after every five instances of the word "hello!"
I could obviously go on forever with the "||" method I'm using below, but that seems to be bad coding practice. What would be a better way to write this?
$count = 0;
while ($row = mysqli_fetch_assoc($results)) {
echo "hello! "
$count += 1;
if ($count == 5 || $count == 10 || $count == 15 || $count == 20) {echo "<br>";}