so this is the code after I modified it:
while($row = mysql_fetch_array($result))
{
echo "<table border=0 cellpadding=2 cellspacing=1 border=0 width=100%>\n";
echo "<tr><td bgcolor=$color><CENTER>$row[id]</center>\">";
echo "<td bgcolor=$color><center>$row[field1]</center></td>\n";
echo "<td bgcolor=$color><center>$row[field2]</center></td>\n";
}
$count = 0;
if($count++ >3) {
echo "</table>\n";
echo "TESTING ADVERT\n";
$count = 0;
echo "<table border=0 cellpadding=2 cellspacing=1 border=0 width=100%>\n";
}
}
echo "</table>\n";
Also, If I use that script you showed me, which will display the advert script every 3 rows right? What If I want it to show ONLY once, say after the first 3 rows...
I came up with this:
$count = 0;
if($count++ = 3) {
include("banner_ad.php");
$count = 4;
}
Will this work? given that the first script is fixed and working.
Thanks a million!