Two things:
The proper way to do an IF statement:
if(condition) {
statement here
} else {
other statement
}
Also, using quotes.
Instead of double quotes:
echo "<span> blah blah blah</span>";
use single quotes:
echo '<span>blah blah blah</span>';
EXCEPT!! when you echo a variable.
If you want to echo a line that has a variable in it, than you use double quotes.
echo "$variable";
Have you ever done any programming at all?
There's several ways to set up an if statement. You don't need the curly brackets for a one line if, else, for, or while, and it doesn't matter how it's formatted. every interpreter and compiler ignores white space anyway.
Quotes don't matter either!
Besides, the original poster already resolved his problem, why'd you bring it back up?