i am new to php i am working on image upload to folder and displaying it from the same folder and added checkbox to each diasplayed image.. but my problem is images are displaying one below the other but i want to diasply each image and the corresponding checkbox in sperate column can any one pls help me out in this thanks in advance.. here is my code.
<?php
$path = "small";
$dir_handle = @opendir($path) or die("Unable to open folder");
while (false !== ($file = readdir($dir_handle))) {
if($file != '.' && $file != '..' && $file != 'Thumbs.db')
{
echo "<input type=CHECKBOX name=$file>";
echo "<img src='small/$file' alt='$file'><br />";
}
}
closedir($dir_handle);
?>