Retrieve images

i have a script that display all images from the folder i also stored the names of those images in database i want to ask that is it possible to only get all those images whose names are exist in database in other words i want a script that display all the images of the folder by using their path name stored in database. my current script is:
[php]

<?php $handle = opendir(dirname(realpath(__FILE__)).'/folder/'); while($file = readdir($handle)){ if($file !== '.' && $file !== '..'){ echo ''; } } ?>

[/php]

its possible using mysql fetch array

$quer1=mysql_query(“select * from images_table”);
while($resul=mysql_fetch_array($quer1))
{ ?>

<? } ?>

ahamedapps

Sponsor our Newsletter | Privacy Policy | Terms of Service