adding rel=nofollow"

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
grgo
Forum Newbie
Posts: 6
Joined: Fri Jun 06, 2008 3:49 pm

adding rel=nofollow"

Post by grgo »

Hy,
I am trying to add rel="nofollow" infront of href in this statment:

echo "\n\t<a href=".trim($this->configuration_data->ADDS_URL)."?a=9 class=menu_bar>".urldecode($this->messages[12])."</a>\n\t&nbsp;&nbsp;&nbsp;\n\t";

and I am getting error.
Thanks, Gregor
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: adding rel=nofollow"

Post by onion2k »

You need to backslash the quotes, eg rel=\"nofollow\"

In future though, tell us what the error is. That one is so common it's obvious when it crops up, but it's not always that easy, and if you don't share all the information you have people won't bother helping you.
Post Reply