Please I want to display some informations between a queried database while loop results:
<?php
$query = mysqli_query($con, "SELECT * FROM table");
while($sql = mysqli_fetch_array($query)){
$id = $sql['id'];
$country = $sql['country'];
echo $id.". ".$country."<br>";
}
?>
If the result is:
1. MALAYSIA
2. GERMANY
3. EGYPT
4. CAMEROUN
5. ITALY
6. RUSSIA
7. ENGLAND
8. ETHIOPIA
9. AUSTRIA
10. JAPAN
I want to add something in between the result like this:
1. MALAYSIA
2. GERMANY
3. EGYPT
this is an advert div(1)
4. CAMEROUN
5. ITALY
this is an advert div(2)
6. RUSSIA
7. ENGLAND
8. ETHIOPIA
9. AUSTRIA
this is an advert div(3)
10. JAPAN
Please is it possible?
divs?