hi,
i would like the user to select the time from 0700 to 1800 from the combo box.the time have an interval of 30 minutes.i try to use a for loop to loop the time and display it,but it couldn't work.
<select name=timeid>
<?
for($i=0700;$i<=1800;$i+30){
?>
<option value=<?echo $i?>><?echo $i?>
<?
}
?>
</select>
i using the above code,but it give me two error.first it cannot start with 0700 and second it will not increament $i by 30 and a fatal error saying Maximum execution time of 30 seconds exceeded in the loop.
why is this so???is my loop have any problem???how can i allow user to select time???
thanks for the help...