Ok that worked great. I did have to, however, remove the / at the beginning of the url for it to work. I have also tweeked this some more and this is what I have got.
gallery_index.phpCODE
<DIV id="gallerymain">
<?php
$filename = 'gallery/image_bridges/I001.jpg';
if (file_exists($filename)) {
include ("gallery_include_.php");
}
?>
<?php
$filename = 'gallery/image_bridges/I002.jpg';
if (file_exists($filename)) {
include ("gallery_include_.php");
}
?>
<?php
$filename = 'gallery/image_bridges/I003.jpg';
if (file_exists($filename)) {
include ("gallery_include_.php");
}
?>
</DIV>
gallery_include_.phpCODE
<div id="gallery"><?php echo "<a href='#'><img src='$filename' width='100' height='75' class='ImageArticleGallery' />
</a>" ?> <p class="caption"><?php include ("$desc"); ?>
</p>
</div>
Now the next challenge. I want each of these to have its own url to open up a larger view e.g. www.yoursite.com/gallery/large_view.php?image=I001
I understand that I need to have a page to display the large image (large_view.php) and on that page there must be this bit of code at the top:
CODE
<?php $image=$_GET['image']; ?>
What I can't seem to get my head around is how, when all the images are displayed as thumbnails, I could get them to have the correct link to pass the variable through the url.
Hope I make sense, can anyone help.
This post has been edited by morcomm: 28 May, 2008 - 11:14 AM