I now have this code for showing images from a certain directory:
Code: Select all
<?php
$handle = opendir(dirname(realpath(__FILE__)).'/pictures/');
while($file = readdir($handle)){
if($file !== '.' && $file !== '..'){
echo '<img src="pictures/'.$file.'" border="0" />';
}
} ?>I have no idea where to start or how to make this code