Hello all. For some reason I cannot figure out how to do this one right. I want it to display things kinda like this:
Image1 Image2
Image3 Image4
etc etc
Any help would be GREAT!
I cant seem to figure out a correct way to do this using this code:
$title = $_POST['title'];
$dir = "/home/XXX/public_html/XXX/XXX/";
$dir = $dir.$title;
if(!file_exists($dir)){ echo "No images found."; } else {
$handle=opendir($dir);
while (($file = readdir($handle))!== false){ if ($file != "." && $file != "..") {
$file_name = $_FILES['file']['name'];
echo "<img src='/eventimages/$title/$file' alt='$file_name' heigth='120' width='145'>";
}}}
I also seem to be running into an issue getting the images to display as well, they have the correct URL address to get them and the sizes format correctly, but all I get is a broken image picture.
THANKS!!!!