<?php
$date='July 16 2003';
$pies='5';
$apples='10';
$total=$pies + $apples;
echo 'the amount of food items we have are ';
echo $total."<br><br>";
echo 'the date is '.$date;
if (1+1==3){
echo 'one plus one equals three?';
}
{
else
echo 'one plus one equals two';
}
?>
says line 15 "else" ...
Parse error: parse error in /home/scuzzosplace/public_html/info.php on line 15
I was using this example
if (expression1)
{
This block gets executed if expression1 is true
}
elseif (expression2)
{
This blcok of code gets executed if expression2 is true
}
else
{
This block gets excuted if both expression1 and expression2 are false
}