View Full Version : How to put images into a slider from a specific folder

07-15-2012, 08:54 PM
Hey Everyone! i want to create a slider in which the images comes from a specific folder, only those images comes from folder whose names are stored in database.
I am getting the names of all the images and converting into a JSON format, now how do i get the images from folder ?

here is my php code for getting the names of the images stored in database


$sql="SELECT image
FROM promotion";
$i = 0;
$json1 = json_encode($rows);
echo $json1 ;

how can i do it? Plz help me..