Re: Help with if
| From: | Stephen | Date: | Mon, 06 Aug 2007 15:42:54 +0000 |
| Subject: | Re: Help with if | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28327@lists.php.net to get a copy of this message | ||
$rank would be called from the users file and then if their rank was set at
Unregistered i want it to display the subscription button and if it was any
other rank then it shows the Cancle Subscription button
""Luis Moreira (ESI-GSQP)"" <luis.moreira@esi.pt> wrote in message
news:000601c7d83f$af942790$0ebc76b0$%moreira@esi.pt...
>I believe the syntax is not correct.
>
> First, you should have
>
> if ($rank !== Unregistered) {
>
> or
>
> if (($rank) !== Unregistered) {
>
> Otherwise, the count for "open parenthesis" and "close parenthesis" do not
> match.
>
> Also, is Unregistered a defined type?
> If not, how do you compare a variable ($rank) against it ?
>
>
> Luis
>
>
> -----Original Message-----
> From: Stephen [mailto:therealzerocool@gmail.com]
> Sent: segunda-feira, 6 de Agosto de 2007 16:31
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Help with if
>
> i did take out the ) after them both and it still is not working. I have
> copy and pasted it, I just removed the huge blog of info that was given
> from
>
> PayPal that is not important.
> "Stut" <stuttle@gmail.com> wrote in message
> news:46B73D4B.9070109@gmail.com...
>> Stephen wrote:
>>> i'm tryin to get the if command to work on my site so that I can get the
>>> buttons to show for registering if a certain user is at the first rank.
>>>
>>> The current code that I have is as follows;
>>>
>>> </php
>>> if ($rank) !== Unregistered) {
>>
>> Curious PHP tag, you don't want the ) after $rank and Unregistered I'm
>> guessing should be in quotes. I suggest you copy/paste your code instead
>> of re-typing it (assuming you re-typed it).
>>
>> -Stut
>>
>> --
>> http://stut.net/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php