title: Idea for limiting photo uploadby field
body: <p>I have a form with 10 fields of photo upload. What I want to do is to limit 10 photo upload. Ususally after you upload 10 photos and after that the the 10 fields will appear again. But this time I want to make it limitable. For example, there are 10 upload fields and after you upload 5 photos, there will be only 5 fields left. If you delete a photo then 6 fields will apear there. For now, I'm using <code>select count(*)</code> to count number of rows in MySql table and I'm using : </p>
  
  <pre><code>if ($rownumber == 4) { 
      "show 6 fields" 
  }
  </code></pre>
  
  <p>Are there any other method to do this? The method that I'm using now are so complicated and uses codeas a lot.</p>