Jump to content

[SOLVED] loop help please.


redarrow

Recommended Posts

advance thank you.

 

how can i show, that number 0 is the word "select".

 

keep getting a infinity loop,please show me  a example cheers.

<select name="podcast_programming_years">
<?php

for($py=0; $py<50; $py++){

   echo"<option value='$py'>$py</option>";	
}

?>
</select>

Link to comment
https://forums.phpfreaks.com/topic/146508-solved-loop-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.