echo syntaxis

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eeau1973
Forum Commoner
Posts: 27
Joined: Sat Aug 19, 2006 4:49 pm

echo syntaxis

Post 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
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

should be

Code: Select all

echo "&nbsp;<a href=\"www.google.com\">Visit google</a>";
Can you see the difference?
eeau1973
Forum Commoner
Posts: 27
Joined: Sat Aug 19, 2006 4:49 pm

re: php code

Post by eeau1973 »

I don't see the diference !

What is the problem ?

Thanks a lot !
eeau1973
Forum Commoner
Posts: 27
Joined: Sat Aug 19, 2006 4:49 pm

re: echo syntaxis

Post by eeau1973 »

Well I see the diference now ... a "\"

thanks again !
Post Reply