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 Code:
<?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..