...

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



aneeb
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

getphp.php


<?php
include"config.php";
$sql="SELECT image
FROM promotion";
$result=mysql_query($sql);
$rows=array();
$i = 0;
while($data2=mysql_fetch_array($result)){
$i++;
$rows['userdata'][]=array('a'=>$data2['image'],);
}
$json1 = json_encode($rows);
echo $json1 ;
?>



how can i do it? Plz help me..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum