Hi guys. I want to insert an advert after the first article on my blog. It's not a wordpress or other generic blog. I have an idea on how i should do it but it just doesn't work when i try. I use a do-while loop to call the articles. This is the code...
<?php do { ?>
<h2><a href="news.php?post_id=<?php echo $row_getPosts['post_id']; ?>"><?php echo $row_getPosts['title']; ?></a></h2>
<p class="updated"><?php echo $row_getPosts['formatted']; ?> | By <a href="#"><?php echo $row_getPosts['name']; ?></a></p>
<p><?php echo nl2br($row_getPosts['blog_entry']); ?></p>
<?php } while ($row_getPosts = mysql_fetch_assoc($getPosts)); ?>
Please help...