Re: *IF* it was that simple

From: Date: Thu, 17 May 2001 09:51:18 +0000
Subject: Re: *IF* it was that simple
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53198@lists.php.net to get a copy of this message
Loose the ; after the if Jeroen "Tarrant Costelloe" <tcostelloe@insur-e.net> wrote in message news:B8DC55700B11DA4F8AA61B2803F3D1A805C4BE@insure-ems.insur-e.net... > Ok here is a simple IF statement I am messing around with, yet the parser is > sending back an error message of which I cannot see the cause: > > Code: > ==== > > <?php > if ($name == "tarrant" && $username == "costtar" && > $password == > "password"); > { > print("Your are now logged in $name, thank you."); > } > else > { > print("Access Denied! IP Logged"); > } > ?> > > Error: > ==== > > Parse error: parse error in C:\locahost\parser.php on line 16 > > Line 16 being the line which contains "else" (line 6). > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#53198) next »