I am using the following code to extract the images from a directory and place them in a table. It works fine except that the "." and ".." lines from the directory are also read as seperate files. I only want it to show .gif and .jpgs.: <br>
$ptr=opendir($path.$sport); <br>
while ($file = readdir($ptr)){ <br>
print "<TR align=\"left\" valign=\"top\"><TD><img src=\" width=\"75\" height=\"100\" border=\"0\"></a><input type=\"radio\" name=\"imgpick\" value=\" <br>
} <br>
closedir($ptr);
$ptr=opendir($path.$sport); <br>
while ($file = readdir($ptr)){ <br>
print "<TR align=\"left\" valign=\"top\"><TD><img src=\" width=\"75\" height=\"100\" border=\"0\"></a><input type=\"radio\" name=\"imgpick\" value=\" <br>
} <br>
closedir($ptr);