Search found 5 matches

by kcpaige
Tue Jul 05, 2005 2:18 pm
Forum: PHP - Code
Topic: Loop problem... also need an array but can't put it in right
Replies: 9
Views: 514

PostPosted: Tue Jul 05, 2005 12:10 pm Post subject: Thus -> each cycle $w = $c - $num; // notice that num is random... $w does not = $c - $num. What I want to have happen, which it should be happening, is the do while loop runs five times because z is posted as 5. When this happens $w is increasd b...
by kcpaige
Tue Jul 05, 2005 11:56 am
Forum: PHP - Code
Topic: Loop problem... also need an array but can't put it in right
Replies: 9
Views: 514

can anyone help, i don't need the array i just need to find out how to fix my $w...
by kcpaige
Tue Jul 05, 2005 9:45 am
Forum: PHP - Code
Topic: Loop problem... also need an array but can't put it in right
Replies: 9
Views: 514

Still can't see where the problem is. I tried writing it out, and by my logic it should still echo 5, 100 times. Maybe I just don't understand my while - do while loop or how PHP handles it. :cry:
by kcpaige
Tue Jul 05, 2005 8:13 am
Forum: PHP - Code
Topic: Loop problem... also need an array but can't put it in right
Replies: 9
Views: 514

after restting $w to zero it should go back thru the loop and become five again... I've debugged it to this point but i don't understand why $w isn't going back up to 5 each time.
by kcpaige
Tue Jul 05, 2005 12:44 am
Forum: PHP - Code
Topic: Loop problem... also need an array but can't put it in right
Replies: 9
Views: 514

Loop problem... also need an array but can't put it in right

I need some help with this script. I want this script to run 100 times, which it does. I want it to echo out $w each time it goes by, and with the variables i've selected, it should say 5 each time and it doesn't. After that, I need to catch $w and put it in an array. I can't seem to get anything in...