I doing a small website (school assigment) and I need to upload images and then display them using php
The coding needed to upload an image to the server is done, but i now have a problem to display the uploaded images to the website. The available code is not good( it worked perfectly on a friend website ) can some one check the code for me and tell me what wrong?
Thank you very much
$count = 1;
$odir = opendir($dir);
while ($file = readdir($odir))
echo "<td><a href='".$file."'>" ."<img src='".$odir .$file."' width = 200px height = 200px /></td>";
if($count > 2)