Cant Get it to display the images in the directory unless i only do 1 file type Please fix ive already tried <?php foreach (glob("*.gif"), glob("*.jpg"), glob("*.png") as $image); echo '<img src=\"http://mytestsite.net76.net/imagehost/uploaded/$image\" /></td>'; } ?> PHP:
$file_type = array('gif','jpg','png'); foreach($file_type as $ext){ foreach(glob('*.'.$ext) as $image){ echo '<img src=\"http://mytestsite.net76.net/imagehost/uploaded/'.$image.'\" /></td>'; }//end for }//end for PHP:
yea it can i fixed it myself finally the code he gave me just gives me errors :\ so i rebuilt my code so it works now thanks though