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

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

how can i do it? Plz help me..