title: How to add auto increment number to select tag?
body: <pre><code>$x = date("");
  
  function add_nol($number,$add_nol)
  {
     while (strlen($number)&lt;$add_nol)
     {
        $number = "0".$number;
     }
  
     return $number;
  }
  
  for($y=10;$y&lt;=50;$y++)
  {
     echo "&lt;select name='id'&gt;";
     echo "&lt;option value='". $x."".add_nol($y,3)."'&gt;" . $x."".add_nol($y,3) ."&lt;/option&gt;";
     echo "&lt;/select&gt;";
  }
  </code></pre>
  
  <p>I want to add auto increment numbers into select tag, but I am getting drop down for each numbers from the above code. How to fix this error?</p>