rahulpatel
Programmer
I hope some of you out there can shed some light on a problem for me. Hopefully this won't be as stupidly easy as my last 'problem'.
So, I have a dynamically created gallery and I decided to incorporate lightbox 2.0 into it. This is the section that creates the gallery.
without the rel="lightbox" the gallery runs as it should. With the rel="lightbox" included the script runs but it doesn't show the image. So, I tried copying and pasting the html that was generated into a static page. This is what was generated with a single image in the image folder.
This doesn't work. However if I replace mywebsite/site/gallery.php?image= with ../ it works fine. But I don't want to manually change all the code.
Are there any ideas out there why it doesn't work?
So, I have a dynamically created gallery and I decided to incorporate lightbox 2.0 into it. This is the section that creates the gallery.
Code:
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?image=<?php echo $row['filename']; ?>&curPage=<?php echo $curPage; ?>" [B]rel="lightbox"[/B]><img src="../images/thumbs/<?php echo $row['filename']; ?>" alt="<?php echo $row['caption']; ?>" width="80" height="54" /></a></td>
without the rel="lightbox" the gallery runs as it should. With the rel="lightbox" included the script runs but it doesn't show the image. So, I tried copying and pasting the html that was generated into a static page. This is what was generated with a single image in the image folder.
Code:
<td><a href="mywebsite/site/gallery.php?image=image.jpg" rel="lightbox"><img src="images/image.jpg" alt="My first image" width="80" height="54" /></a></td>
</tr>
Are there any ideas out there why it doesn't work?