RE: [PHP] Impossible bug! (fwd)

2003-06-27 Thread Ford, Mike [LSS]
> -Original Message- > From: John Wulff [mailto:[EMAIL PROTECTED] > Sent: 26 June 2003 22:14 > > Hmph, just not quite doing the trick... If you'd be so kind > here is the > complete source to give you a little bigger picture. As you > can probably > see the point of the script is to gen

Re: [PHP] Impossible bug! (fwd)

2003-06-26 Thread John Wulff
Hmph, just not quite doing the trick... If you'd be so kind here is the complete source to give you a little bigger picture. As you can probably see the point of the script is to generate a bar chart of the array. Thanks so much for the help, let me know what you think! -John Untitled Docume

Re: [PHP] Impossible bug! (fwd)

2003-06-26 Thread Andy Fiddaman
You never set *_color back to 0 at any point, so the first time through the loop it gets set to 1 and stays there. Replace you lines like: ; if($a_percent > $num) { $a_color = 1; } with: $a_color = $a_percent > $num; On Thu, 26 Jun 2003, John Wulff wrote: ; Where the heck is