<select name="day"><option value=""></option> <?php for($i=1; $i > 31; $i++) { echo '<option value="'. $i .'">' . $i ."</option>" ;
}
?> </select>
my code doesn't output numbers 1-31 on the select list. Is there anything wrong with my code?
Look at the logic in your for() statement:
for($i=1; $i > 31; $i++)
The middle condition says that the for() loop should only run when $i is greater than 31.