Re: Simple if() function not working
| From: | Billy Harvey | Date: | Sat, 01 Jul 2000 01:36:13 +0000 |
| Subject: | Re: Simple if() function not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4209@lists.php.net to get a copy of this message | ||
Ted Knudson writes:
> I know I will be embarrass over this but I get the error:
> "Parse error: parse error in /home/automat/public_html/ccquote/test.php3
> on line 5" when I run this script.
> The if() function is line 5.
>
> This is a line out of a larger script that has if() functions working
> perfectly.
> I hope someone sees what I am missing.
>
> <?php
> $Z=1;
> $Height[1] = 13;
> print $Height[$Z];
>
> If($Height[$Z] => 12 AND $Height[$Z] < 15){print "Do Something";}
>
> ?>
>
> Ted Knudson
> http://www.automatedcabinets.com
> http://www.pulsarusa.com
Ted,
Switch the comparison to >= instead of => .
Billy