Here's a copy of my current code:
echo '<td style="word-wrap: break-word;">
<div><center><a style="text-decoration:none;color:#489FDC;" href="http://local.mysite.com/'.echo basename(__DIR__);.'/'.strtolower(str_replace(" ","-",$row[cities])).'">'.ucwords($row[cities]).'</a></center></div>
</td>';
But I am getting this error and can't figure out how to fix it:
[21-Feb-2014 11:46:08 America/Chicago] PHP Parse error: syntax error, unexpected T_ECHO in /home/username/public_html/local/advertising-company/index.php on line 196
I know it has something to do with this part of the code:
'.echo basename(__DIR__);.'
What do I need to change to fix this?