title: display images dynamically from folder using php
body: <p>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.</p>
  
  <pre><code>&lt;?php
  
  $path = "small";
  $dir_handle = @opendir($path) or die("Unable to open folder");
  
  while (false !== ($file = readdir($dir_handle))) {
  
  if($file != '.' &amp;&amp; $file != '..' &amp;&amp; $file != 'Thumbs.db')
  {
  
  echo "&lt;input type=CHECKBOX name=$file&gt;";
  echo "&lt;img src='small/$file' alt='$file'&gt;&lt;br /&gt;";
  }
  }
  closedir($dir_handle);
  
  ?&gt;
  </code></pre>