$x = date("");
function add_nol($number,$add_nol)
{
while (strlen($number)<$add_nol)
{
$number = "0".$number;
}
return $number;
}
for($y=10;$y<=50;$y++)
{
echo "<select name='id'>";
echo "<option value='". $x."".add_nol($y,3)."'>" . $x."".add_nol($y,3) ."</option>";
echo "</select>";
}
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?