I'm having a problem.
Whats the problem with this loop? It looks fine!
for ($i = 0; 1 > 99; i++) {
echo "<option value='" . i ."'>" . i . "</option";
}Offline
meew0 wrote:
Code:
for ($i = 0; $i > 99; $i++) { echo "<option value='" . i ."'>" . i . "</option>"; }Fixed
![]()
Hmm, what was the problem?
lol. I did 1 as $i :S
Last edited by ProgrammingFreak (2011-06-30 14:55:44)
Offline
ProgrammingFreak wrote:
meew0 wrote:
Code:
for ($i = 0; $i > 99; $i++) { echo "<option value='" . i ."'>" . i . "</option>"; }Fixed
![]()
Hmm, what was the problem?
lol. I did 1 as $i :S
You also forgot an ending angle bracket in </option>
It's always ironic how you just can't figure something out, you go to ask for help, then you realize that you made a n00b mistake.
Offline
meowmeow55 wrote:
ProgrammingFreak wrote:
meew0 wrote:
Code:
for ($i = 0; $i > 99; $i++) { echo "<option value='" . i ."'>" . i . "</option>"; }Fixed
![]()
Hmm, what was the problem?
lol. I did 1 as $i :SYou also forgot an ending angle bracket in </option>
![]()
It's always ironic how you just can't figure something out, you go to ask for help, then you realize that you made a n00b mistake.![]()
ikr. Its kinda *. You'd think I'd have noticed it...
Wow. I need a Basic Web Graphic Designer. Also includes frame and the whole 'look' of the website.
Offline