I am trying to display data inline, say in two or three columns rather than one single column. So far, I am using this code to display a single column:
echo "<DIV ALIGN=center><TABLE BORDER=0>\n";
echo "<TR><TD HEIGHT=40><!--SPACER--></TD></TR>";
do {
printf("<TR><TD ALIGN=center><IMG SRC=images/%s WIDTH=100><BR>%s</TD></TR>\n", $myrow["img"], $myrow["name"]);
} while ($myrow = mysql_fetch_array($result));
echo "</TABLE></DIV>\n";
The above display the image and corresponding title under it. But they are all in a verticle line. I want to have two or three lines / columns.
I have been experimenting with all sorts of ideas, but none work, and I have run out of ideas. Please help! 🙂