I tried fixing up the code a bit more to make it more readable, but I still haven't solved the issue.
Someone see something that I might have missed? I don't want one row of images with a column of text next to it, but image then text under it, then image NEXT to FIRST image with text under that, etc..etc..
Note, I didn't forget the closing curly bracket, I left it out of this code
PHP Code:
echo "<table cellpadding=\"5\" cellspacing=\"5\" width=\"100%\" border=\"1\" style=\"border-collapse:collapse;\">"; while($row = mysql_fetch_array($result)) { echo "<tr><td>"; echo "<img src=\"http://www.webmaster-talk.com/images/$row[element_5]\" border=\"1\" width='$maxwidth' alt=\"$row[element_1]\" title=\"$row[element_1]\">";
// by adding the <br /> tag just before $row[element_1] below, I now have the text UNDER the image, but I want to put the images into separate rows not just one
echo "<a href=\"$row[element_2]\"><br />$row[element_1]</a>";
__________________
Made2Own
Last edited by Brian07002; 12-10-2009 at 08:58 PM..
|