in reply to Re: Re: Troubleshooting help...
in thread Troubleshooting help...

I changed days to today, and they are added up correctly, however, I get 0% from the division.

The way your logic is set up, only one of $tracked_click or $tracked_impressions will be 1 when

($tracked_click*1) / ($tracked_impressions*1)
is executed. The other will be zero. You're either going to divide zero by one, giving zero, or you're going to divide by zero. Is this really what you want to do?

Should I get rid of the </td /> and just use the regular code?

You should use </td>. The "trailing slash" form of tags is reserved for those tags that are not paired, like <br/>.

Replies are listed 'Best First'.
Re: Troubleshooting help...
by powerhouse (Friar) on Feb 15, 2003 at 22:09 UTC
    Ok, I fixed it. I was using two different variables for the tracked_clicks I was not putting the ending s on it, when doing the dividing.

    Duh ;(
    I cannot believe I missed that;o)

    MANY Thanks for the help everyone!

    Thx,
    Richard