Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm trying to display images in a table while drawing it from MySQL. I'd like it to view as..
| 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 |
etc
Except i either get it to view as all of the entries in the database as 1-xx in a vertical table...
How do i get it to be a 5 col table and the row fills as an entry is added in the mysql database.
I know i gotta put the HTML coding in the right place but where?...Code: Select all
echo "<table width='200' border='0' align='center' cellpadding='1' cellspacing='1'>";
while ($data = mysql_fetch_array($result)) {
echo "<tr><td><a href='";
echo $data['photo'];
echo "' rel='lightbox[roadtrip]' title='";
echo $data['title'];
echo "'><img src='";
echo $data['photo'];
echo "' width='150' height='150' border='0'></a></td>";
}
echo "</tr></table>";~pickle | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]