Jump to content

[SOLVED] php echoing html


adam291086

Recommended Posts

I am trying to echo out this

 

echo "<td bgcolor=#c0c0c0><a href="#">$counter<span>lalala</span></td></a>";

 

the error i get is

Parse error: parse error, unexpected '}', expecting ',' or ';' in /homepages/12/d214897219/htdocs/adam/cycling/calendar/adam.php on line 101

 

but the } on line 101 ends the if statment. When i remove <ahref="#"> and </a> + the <span>,</span> it works fine. Any suugestions?

Link to comment
https://forums.phpfreaks.com/topic/80470-solved-php-echoing-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.