Printing HTML with PHP
I have a little PHP program that reads a
database and prints a table of ads
the output look like this
http://freeheadlinecreator.com/jackads.php
the ads are single column like this:
Ad 1
Ad 2
Ad 3
Ad 4
etc
I Want to have two columns like this
Ad 1 Ad 2
Ad 3 Ad 4
This is the code that's printing the ads
while ($Row = mysql_fetch_array($Result))
{
$i=$i+1;
print("<table style=\"border-collapse: collapse\" bgcolor=\"#FFFFFF\" bordercolor=\"#dddddd\" border=\"1\" width=\"250\"
cellpadding=\"0\" cellspacing=\"0\">\n<tr><td bgcolor=\"#330099\"><table border=\"0\" width=\"100%\" >\n<tr><td width=\"1\"><img
border=\"0\" src=\"images/blank.gif\" width=\"1\" height=\"1\"></td>\n<td width=\"100%\" align=\"left\">\n<font color=\"white\"><font
color=\"white\"><b><center> $Row[ad_line1]</b></font></font></center></td><td width=\"50%\"
dir=\"rtl\"></td></tr></table></td></tr><tr><td><table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"7
\"></td></tr><tr><td width=\"14\"></td><td width=\"5\"></td><td valign=\"top\" align=\"center\">$Row[ad_line2]<br>$Row[ad_line3]<br><a
href=\"http://$Row[ad_line4]\" target=\"_blank\">$Row[ad_line4]</a><br>\n\n</td><td width=\"14\"></td></tr><tr><td height=\"12
\"></td></tr></table></td></tr></table><br>");
}
Any idea on how i can modify this to be 2 Columns?
Jack
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy