Re: Help with if
| From: | Thomas Hearn | Date: | Mon, 06 Aug 2007 15:37:43 +0000 |
| Subject: | Re: Help with if | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28326@lists.php.net to get a copy of this message | ||
Stephen,
Should be if ($rank != Unregistered)
However, what is Unregistered? Is it a variable, constant?
There is a possibility that it should be ($rank != $Unregistered)
If you are comparing $rank to an actual text value then it should be ($rank != "Unregistered")
Hopefully that helps.
Tom
Stephen wrote:
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: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/The current code that I have is as follows; </php if ($rank) !== Unregistered) {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.