I was wondering if someone can help me with my code.
In my db, i have records of image paths...(where images have been uploaded) i want to create a gallery.
so, i do the following:
Here, this works...1 image per row...
$query = "SELECT imgpath WHERE username = '$username'";
$result = mysql_query($query) or die (mysql_error()):
(while $album = mysql_fetch_array($result))
{
print "<tr><td><img src=\"$album[imgpath]\"></td></tr>";
}
I want 2 images per row...Instead of 1 image per row.
Can someone please help me with the code for that?
$query = "SELECT imgpath WHERE username = '$username'";
$result = mysql_query($query) or die (mysql_error()):
(while $album = mysql_fetch_array($result))
{
print "<tr><td><img src=\"$album[imgpath]\"></td><td><img src=\"$album[imgpath]\"></td></tr>";
}