Forum Moderators: coopster
small example:
//initiate count variable
$count = 1;
//start loop. I'm assuming you are using while
while($row = mysql_fetch_assoc($sql)){
//check to see where count is at, if 5th row display ad
if($count%5 == 0) echo "<tr><td>Your advertising</td></tr>\r\n";
//echo record from mysql
echo "<tr><td>".$row['something']."</td></tr>\r\n";
//add 1 to count
$count++;
}