Page 1 of 1

echo syntaxis

Posted: Tue Aug 07, 2007 12:49 pm
by eeau1973
hi friends ...

Maybe for all of you this post sound like a joke, but the case is that I cannot write a messages with the echo sentence ...

Code: Select all

echo "&nbsp;<a href=\"$PHP_SELF?s=$news&q=$var\">Next 10 >></a>";
This works ! ...

but this is not working ...

Code: Select all

echo "&nbsp;<a href=\"www.google.com">Visit google</a>";
Would you please give me some help? I need to show to the user a link to visitit a web page ... (in this case http://www.google.com)

thanks in advance ..

greetings

Posted: Tue Aug 07, 2007 12:52 pm
by thiscatis
should be

Code: Select all

echo "&nbsp;<a href=\"www.google.com\">Visit google</a>";
Can you see the difference?

re: php code

Posted: Tue Aug 07, 2007 1:07 pm
by eeau1973
I don't see the diference !

What is the problem ?

Thanks a lot !

re: echo syntaxis

Posted: Tue Aug 07, 2007 1:11 pm
by eeau1973
Well I see the diference now ... a "\"

thanks again !