Rytron
May 20th, 2008, 09:34 PM
Hi,
I get this error
Parse error: parse error, unexpected '}', expecting ',' or ';' in C:\wamp\www\-php\PHP-4-If Else Statements.php on line 8
Here is the php:
<?php
$first=30;
$second=40;
$third=50;
if ($first<$second)
{echo"this is true"}
else
{echo"this is false"}
/*
if ($first==$second)
{echo"this is true"}
else
{echo"this is false"}
*/
/*
if ($first!=$second)
{echo"this is true"}
else
{echo"this is false"}
*/
?>
What is wrong with this code?
Thanks.
I get this error
Parse error: parse error, unexpected '}', expecting ',' or ';' in C:\wamp\www\-php\PHP-4-If Else Statements.php on line 8
Here is the php:
<?php
$first=30;
$second=40;
$third=50;
if ($first<$second)
{echo"this is true"}
else
{echo"this is false"}
/*
if ($first==$second)
{echo"this is true"}
else
{echo"this is false"}
*/
/*
if ($first!=$second)
{echo"this is true"}
else
{echo"this is false"}
*/
?>
What is wrong with this code?
Thanks.