Forum Moderators: coopster
Line 33:
echo "<b><div align="left">DKicks :: News</div></b><br><br>";
Whats wrong?
electricocean
you need to enclose the string to be echo'ed in quotes. As you will see above, the double quotes are opened right after the function echo and then closed right before the word left.
The parser then sees the word left and doesn't know what it is so it tells you there is an unexpected string.
There are two methods to correct this.
escape the quotes used inside the string, like so
echo "<b><div align=\"left\">DKicks :: News</div></b><br><br>";
to escape something you precede it with a \
the other option is to use single quotes around the string
echo '<b><div align="left">DKicks :: News</div></b><br><br>';
this means you don't get the mismatch of the different quotes. there is more information here on the differences between single and double quotes.
[php.net...]