I'm trying to figure out how to display images 3 across in a row instead of just a single image per row. When I call up the images, it jys shows one per row scrolling down the page, I want to be able to display 3 across and have it go down each row showing 3.
Here is what I came up with so far, any help will be greatly appreciated! _
function display_wallpaper($wallpaper_array)
{
open_table_main();
//display all wallpaper in the array passed in
if (!is_array($wallpaper_array))
{
echo "<br>No wallpaper currently available in this category<br>";
}
else
{
//create table
echo "<table width = \"100%\" border = 0>";
echo "<tr><td>";
//create a table row for each wallpaper
foreach ($wallpaper_array as $row)
{
echo "<Table Border=0 Width=150 Cellpadding=0 Cellspacing=0>\n";
echo "<TR><TD COLSPAN=2><IMG SRC=\"downloads/wallpaper/".$row["thumb_img"]."\" Border=0></TD></TR>\n";
$url = "show_wallpaper.php?wallpaperid=".($row["wallpaperid"]);
echo "<TR><TD><P CLASS=link>";
$title = $row["dims_01"];
do_html_url($url, $title);
echo"</TD><TD><P CLASS=small>".$row["size_01"]."</TD></TR>\n";
echo "<TR><TD colspan=2><P CLASS=small>Viewed: ".$row["downloads"]." times</TD></TR>\n";
$url2 = "show_wallpaper_1024.php?wallpaperid=".($row["wallpaperid"]);
echo "<TR><TD><P CLASS=link>";
$title2 = $row["dims_02"];
do_html_url($url2, $title2);
echo"</TD><TD><P class=small>".$row["size_02"]."</TD></TR>\n";
echo "<TR><TD colspan=2><P class=small>Viewed: ".$row["downloads_02"]." times</TD></TR>\n";
echo "</Table><br>";
}
echo "</td></tr></table>";
}
close_table_main();
}