> -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
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
--- "Ford, Mike [LSS]" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Mark [mailto:[EMAIL PROTECTED]
> > Sent: 26 June 2003 15:16
> > To: John Wulff; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Impossible bug!
> >
> -Original Message-
> From: Mark [mailto:[EMAIL PROTECTED]
> Sent: 26 June 2003 15:16
> To: John Wulff; [EMAIL PROTECTED]
> Subject: Re: [PHP] Impossible bug!
>
>
> In additon to the previous comment about resetting $*_color, you're
> multiplying t
In additon to the previous comment about resetting $*_color, you're
multiplying the decimal value by 100 to get a percentage. But then
you're comparing it to 1, not 100.
EWither don't multiply it by 100, or check to see if it's > 100. Or
do you really want $*_color to be set if it's greater than
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
6 matches
Mail list logo