What are you getting?  An image at all?  Broken image?

Try getting rid of the header("image/jpeg") or whatever, and see if you have
some error message.

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Hugh Danaher <[EMAIL PROTECTED]>
Newsgroups: php.general
To: Php-General <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 1:16 AM
Subject: if statement and imageline()


I am trying to set up a .jpg file to graph the earnings per year of a
company.  I can generate a log-normal graph, can get it to display the
earnings per year as circles on the graph, but I can't get the  " if () "
statement to work.  I know I am setting two of the variables in the if
statement after the if statement executes once, but these variables won't be
used until after the " for () " loops once, and therefore should be
available for use in " imageline() " on the second loop (where
$year>$startyear).  Somehow, I think my logic is correct but it mustn't be

for ($year=$startyear;$year<=$startyear+7;$year++)
     if ($year>$startyear)

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to