Hey guys!
I'm trying to build yacht a presentation where at the end there will be a bunch of images.
The thing is that each page can have only two images and at the end and I must include a footer (with the company logo). I wonder how can I enter the footer after each second image. The code I use is a simple code that finds any file and displays it as an image.
$yachtname = ereg_replace(" ", "", $row['ad_headline']);
$directory = "images/entries/".$yachtname."/";
$images = scandir($directory);
$ignore = Array(".", "..");
foreach($images as $curimg){
if(!in_array($curimg, $ignore)) {
echo "<center><img src=\"".$directory."/".$curimg."\" width=\"800\" /></center><br /><br />\n";
}
}
and I can't figure out where to put the <div> code with the footer.
Thanks in advance guys!