Page 1 of 1

php?

Posted: Sun 16 May 2010 3:42 pm
by n9mfk
I need some help
here the code im working with

Code: Select all

 echo "\t<link $link</link>\n"; 
i need to add href="
if I do

Code: Select all

echo "\t<link href='"' $link</link>\n";

i get this error Parse error: syntax error, unexpected ''', expecting ',' or ';
how can I fix this Beau

Re: php?

Posted: Sun 16 May 2010 9:41 pm
by beteljuice
You've messed up enough code by now Beau :D

escape the 'extra' "

Code: Select all

echo "\t<link href='\"' $link</link>\n";