Re: function in if statement not executed ?-->> Help
| From: | PHPhyperboy | Date: | Tue, 24 Apr 2001 02:29:40 +0000 |
| Subject: | Re: function in if statement not executed ?-->> Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49996@lists.php.net to get a copy of this message | ||
actually yes, the r is "register" the l is "login" and r to y is "yes"
r to
d is "done" if that makes sense? :)
the actual problem is coming from a missing { or an }
I just actually found a misplaced "}"
other then that Im still at a loss
----- Original Message -----
From: "Jason Murray" <Jason.Murray@melbourneit.com.au>
To: "'PHPhyperboy'" <phpretard@yahoo.com>;
<php-general@lists.php.net>
Sent: Monday, April 23, 2001 10:25 PM
Subject: RE: [PHP] function in if statement not executed ?-->> Help
> > if($l=="d") {
> > log_user();
> > } else if($r=="d") {
> > add_user();
> > } else {
> > $r ="y";
> > }
>
> looks like:
>
> 1. $l is not set to "d".
>
> 2. $r is not set to "d".
>
> $r may be set to "y" by this code. Did you check it?
>
> Jason
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com