Jump to content

LIGHTBOX 2 + PHP QUESTION


andrew101

Recommended Posts

hello guys

its me again, i've create a php photo album and it works great.

whenever users click the thumpnail it displays the image in new window.  "THAT SUCKS!"

 

I want to upgrade to lightbox. when users click the

thumpnail it shows a fancy lightbox open up.

Ive install the lightbox js and css already and

tried some code on my own but nothing works.

can somebody please help me?

 

/////////////////////////////////

the code im using.

////////////////////////////////

 

<?php do { ?>

                <a href="display.php?recordID=<?php echo $row_photos['photo_id']; ?>">

                <?php echo "<img src=http://www.domain.com/photo_album/images/small/".$row_photos['photo'] ."> ";  ?>

                </a>

                <?php } while ($row_photos = mysql_fetch_assoc($photos)); ?>

 

 

 

//////////////////////////////////////

The lightbox code i want to integrate

///////////////////////////////////////

 

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>

 

Link to comment
https://forums.phpfreaks.com/topic/185162-lightbox-2-php-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.