This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Rasyid Fajar
almost 9 years

Error. check your code for infinite loops. whats wrong with my code?

Answer 558a0c38e39efef7ed000219

1 vote

Permalink

Your $loop +5; statement does nothing. You need it to say: $loop += 5; otherwise it isn’t adding any value to the $loop variable, so it will always equal 0. This creates an infinite loop because the condition ($loop < 50) never becomes false since $loop stays at 0.

points
Submitted by Daniel Hughes
almost 9 years

1 comments

Rasyid Fajar almost 9 years

oh yeah!! thank you!! its work!!