RE: [PHP-DB] Newbie: IF statement

2001-05-14 Thread Taylor, Stewart
D]] Sent: 14 May 2001 11:24 To: [EMAIL PROTECTED] Subject: [PHP-DB] Newbie: IF statement 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 p

Re: [PHP-DB] Newbie: IF statement

2001-05-14 Thread Johannes Janson
Hi, > I have tried these if statements, but without luck: > > if ($Page='') { $Page="homepage" } you use only one = So you assign "" or '' or null to $page. use if ($page == "") instead. hope it helps Johannes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

[PHP-DB] Newbie: IF statement

2001-05-14 Thread Dan Eskildsen
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,