No image displayed in PHP Dynamic Image Gallery

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No image displayed in PHP Dynamic Image Gallery

ulisespm
Hi there: I'm using Shadowbox in order to display a set of images from MySQL <nabble_embed><?php echo "<td><a href='showImg.php?id=$id' rel='shadowbox'><img src='showImg.php?id=$id'></a></td>"; ?></nabble_embed> Unfortunately, when I click on the image it only shows the black background. I've tried with a static image: <nabble_embed><tr> <td colspan="4"> <a href="flor00.jpg" rel="shadowbox"><img src="flor00.jpg" width="100" height="100" border="0"></a> </td> </tr></nabble_embed> and it shows the image without problems. I want to thank you in further for your assistance. Plase HEEELP! Best Regards Ulises
Reply | Threaded
Open this post in threaded view
|

Re: No image displayed in PHP Dynamic Image Gallery

woody
Hi,

Try passing width and height attributes in your URL like this:

<nabble_embed> <?php echo "<td><a href='showImg.php?id=$id' rel='shadowbox;width=100;height=100'><img src='showImg.php?id=$id'></a></td>"; ?> </nabble_embed>

That solved a similar problem for me when trying to load a php file into shadowbox.