Newbie: IF statement
| From: | Dan Eskildsen | Date: | Mon, 14 May 2001 10:23:56 +0000 |
| Subject: | Newbie: IF statement | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9284@lists.php.net to get a copy of this message | ||
MAJOR NEWBIE ALERT!
I can't believe this! I can't even work out an IF statement!
My page contains a search string (eg: page.php3?Page=products )
If the URL does not contain a search string (ie page.php3) then I want to
assign the Page variable to 'homepage".
I have tried these if statements, but without luck:
if ($Page='') { $Page="homepage" }
if ($Page="") { $Page="homepage" }
if ($Page=null) { $Page="homepage" }
I tried the manual at
http://www.php.net/manual/en/control-structures.php#control-structures.if
but without luck.
Any help?!?!
==================================
Regards from Denmark, Europe
Please cc your reply to dan@eskildsen.net
==================================
I haven't lost my mind, I've got it backed up on TAPE somewhere.......