RE: [PHP-WIN] Help with if

2007-08-07 Thread Gustav Wiberg
From: Stephen Deacon [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 6:12 PM To: Gustav Wiberg Subject: Re: [PHP-WIN] Help with if I did try doing echo "rank=" . $rank; echo "unregistered=" . Unregistered; if ($rank) !== Unregistered) { echo "true"; else

Re: [PHP-WIN] Help with if

2007-08-06 Thread Aleksandar Vojnovic
Are you sure you want to check in the IF sentence also for the type? If not, then try using != or == in the if chunk. Is the "Unregistered" a define/constant? -Aleksandar Gustav Wiberg wrote: Hi! I saw a several things that other people has pointed out, but there is another thing... You ar

RE: [PHP-WIN] Help with if

2007-08-06 Thread Gustav Wiberg
Hi! I saw a several things that other people has pointed out, but there is another thing... You are missing '; after height="1" echo 'https://www.paypal.com/cgi-bin/webscr"; method="post"> https://www.paypal.com/en_US/i/btn/x-click- but24.gif" border="0" name="submit" alt="Make payments wit

Re: [PHP-WIN] Help with if

2007-08-06 Thread Stut
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. Make sure you have display_errors on and error_reporting is set to E_ALL in your php.ini. Without

Re: [PHP-WIN] Help with if

2007-08-06 Thread Stephen
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:[EMAIL PROTECTED] > Sent: segunda-feira, 6 de Agosto de 2007 16:31 > To: php-wi

Re: [PHP-WIN] Help with if

2007-08-06 Thread Thomas Hearn
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.

RE: [PHP-WIN] Help with if

2007-08-06 Thread Luis Moreira (ESI-GSQP)
re a variable ($rank) against it ? Luis -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] 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 c

Re: [PHP-WIN] Help with if

2007-08-06 Thread Carlton Whitehead
Hi Stephen, It looks like there are a few problems: To: php-windows@lists.php.net Sent: Monday, August 6, 2007 11:18:22 AM (GMT-0500) America/New_York Subject: [PHP-WIN] Help with if 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 c

Re: [PHP-WIN] Help with if

2007-08-06 Thread Stephen
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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Stephen wrote: >> i'm tryin to get the if comma

Re: [PHP-WIN] Help with if

2007-08-06 Thread Stut
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; Curious PHP tag, you don't want the ) after $rank and Unregistered I'm guessing should