Re: Problem with IF..
| From: | Jason Wong | Date: | Tue, 20 May 2003 07:56:38 +0000 |
| Subject: | Re: Problem with IF.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148258@lists.php.net to get a copy of this message | ||
On Sunday 18 May 2003 01:57, Peter \"Beholder\" Frankenfeldt wrote:
> i have a Problem with the marked (>>>) IF function:
>
> for ($j = 0; $j < 3; $j++) {
> $elem = reset($planeten);
> do {
> $color = ImageColorAllocate($im, 50, 255, 50);
>
> >>> if($j == 2) {
>
> $color = ImageColorAllocate($im, 255, 255, 255);
> } //fi
> imagestring($im, 2, $elem[x] * $sc + ($j * 5), $elem[y] * $sc, $j,
> $color);
> } while($elem = next($planeten)); //elihw od
> }; //rof
>
> When the Array $planeten have more than 126 rows the marked IF function
> don't work and will be ignored.
> I hope, someone can tell me whats wrong..
I can't tell you what's wrong but I'm pretty sure that PHP doesn't just ignore
statements. Did you try *any* debugging? Like printing out all the variables
as you go through the for and do loops?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Work continues in this area.
-- DEC's SPR-Answering-Automaton
*/