Hello Friends,
I am echoing out my articles from my DB (mysql) doing it 10 articles per page and i want to be echoing out advert in between the articles, that is echo our an advert after every two article. meaning on a page of 10 articles, i will have 5 adverts. pls how to i dothis.
Thanks,
adsegzy
How do I insert advert in between my posts
Moderator: General Moderators
Re: How do I insert advert in between my posts
Use a counter as you iterate over the posts and, when $i % 2 == 0, insert your ad.
Re: How do I insert advert in between my posts
Thanks friend