Jump to content

Lightbox, Php, Mysql Blob Issue Pagnation Issue


googlit

Recommended Posts

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...

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>";

}

?>

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.