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... 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>"; } ?> 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 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
Archived
This topic is now archived and is closed to further replies.