Hello everyone,
I need help here. So my problem is how I want to make an image slider where show user uploaded images from his directroy/folder/account whatever.
I would like to create like this image slider.
I tried to create it.... here it is.
and my php code is like this...
<?php
$i=1;
$images = glob($des."*");
$coutimage=count($images);
//for($i=0;$i=$coutimage;$i++)
//sleep(1);
$curruntimage=$images[$i];
echo '<img id="inslider" src="'.$curruntimage.'">';
?>
</div></center>
<div id ="userimageslist">
<div id="moveleft"></div>
<div id="moveright"></div>
<?php
$images = glob($des."*");
foreach($images as $image){
$image_ext = pathinfo($image,PATHINFO_EXTENSION);
if($image_ext == "jpg" || $image_ext == "png" || $image_ext == "jpeg" || $image_ext== "gif" ){
//<a href="'.$image.'" target="_blank">
echo '<img id="imagelist" src="'.$image.'" height="100" width="100">';
}
}
?>
can u give any idee how i get images from users directory with ajex and create image slider like this imageslider where user can see his all photos on his account?