Re: scope problem
| From: | Richard Davey | Date: | Fri, 05 Mar 2004 16:16:59 +0000 |
| Subject: | Re: scope problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179583@lists.php.net to get a copy of this message | ||
Hello Larry,
Friday, March 5, 2004, 4:01:39 PM, you wrote:
LB> This gives values something to the tune of...
LB> 200
LB> 400
LB> 700
LB> 100
Hard to say with so little code, but...
Your first where loop is probably running twice, i.e. resetting
variable back to 100 after the 2nd (internal) where loop has finished
modifying it. Move $variable = 100 above the first where loop and see
what happens.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html