googlit Posted December 21, 2012 Share Posted December 21, 2012 Hi all, hoping theres a quick fix for this ive tried a few dif ways but nothing works... i am trying to implement a lightbox into a script which i have and cant seem to get the code right <?php $query = mysql_query("SELECT ID FROM imageArt WHERE isActive='1'"); while($data=mysql_fetch_array($query)) { echo "<img src='view.php?ID=" . $data['ID'] . "' width='200' height='200'>"; } ?> How can i add the code below into the link above?? please help.... <a href="<?php view.php?ID=' . $data['ID'] . '?>" rel="lightbox" title="my caption">mysql/php code here</a> all help appreciated... Quote Link to comment https://forums.phpfreaks.com/topic/272257-lightbox-php-mysql-blob-issue-pagnation-issue/ Share on other sites More sharing options...
SofWare Posted December 21, 2012 Share Posted December 21, 2012 Here you are: <?php $query = mysql_query("SELECT ID FROM imageArt WHERE isActive='1'"); while($data=mysql_fetch_array($query)) { echo "<a href='view.php?ID=" . $data['ID'] . " rel='lightbox' title='my caption'><img src='view.php?ID=" . $data['ID'] . "' width='200' height='200'></a>"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/272257-lightbox-php-mysql-blob-issue-pagnation-issue/#findComment-1400793 Share on other sites More sharing options...
googlit Posted December 22, 2012 Author Share Posted December 22, 2012 thanks now just to get it working properly lol Quote Link to comment https://forums.phpfreaks.com/topic/272257-lightbox-php-mysql-blob-issue-pagnation-issue/#findComment-1400925 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.