Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Enlarge an Image with light box from images in a database

images php coding issues or problems here.

Moderators: macek, egami, gesf

Enlarge an Image with light box from images in a database

Postby mike60234 » Mon Dec 19, 2011 5:57 am

Hi everyone i have been trying to use lightbox with a script i have written which loops through the entries in a database the code below displays the image but i have no idea how to integrate light box to enlarge them, i have two images one a thumbnail and a full size image i have been scouring the internet and have not been able to find what i am looking for i would greatly appreciate any help

<?php

require ('conn1.php');

// Retrieve data from database
$sql="SELECT * FROM `pics`";
$result=mysql_query($sql);

// Start looping rows in mysql database

while($rows=mysql_fetch_array($result))
{
echo "<img src= url goes here/thimg/".$rows[1] .";

// close while loop
}

// close connection
mysql_close();

?>
mike60234
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Dec 19, 2011 5:18 am

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron