RE: [PHP] function in if statement not executed ?-->> Help
| From: | Jason Murray | Date: | Tue, 24 Apr 2001 02:25:11 +0000 |
| Subject: | RE: [PHP] function in if statement not executed ?-->> Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49994@lists.php.net to get a copy of this message | ||
> 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