Jump to content

Lightbox with PHP?


mcfmullen

Recommended Posts

I am in desperate need of a lightbox script that will open dynamic php pages.

 

What I have is a php file that holds a MySql table. Each row has animal names. Clicking an animal name opens animalspec.php and display the specs on that animal. All of this functions.

 

What I want is to have each animal name open the animalspec.php file in a lightbox window. I've tried many clones of lightbox including the one found here:

http://www.richandstephsipe.com/wordpress/2006/12/20/lightbox-with-iframes-reloaded/

 

With that script, I use a code that looks like this inside my php file:

echo "<a href='http://www.domain.com/animalspec.php?animal={$row['nameUser']}' rel='lightbox|800|800'>{$row['nameAnimal']}</a>";

 

All I get is a white page inside a lightbox window. I do not get what the url should display.

 

Does anyone know of a good, working script for this type of url?

Link to comment
https://forums.phpfreaks.com/topic/192694-lightbox-with-php/
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.