Forum Moderators: coopster

Message Too Old, No Replies

Problem with link.

i tried to use the same guidlines i was givin last time i asked but...

         

GamingLoft

3:22 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



Sorry for asking again but im having some trouble with this link and i dont know whats wrong.
I tried to follow the guidlines i was given before but something must of went wrong.

here is the error i get:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/some domain/public_html/forums/somefile.php on line 70

Here is the line.

echo '<a href="/forums/usercp2.php?action=addfavorite&tid=' . $tid['tid'] . '">'Add to Your Favourites</a>';

eelixduppy

3:24 pm on Jul 30, 2007 (gmt 0)



Change it to this:

echo '<a href="/forums/usercp2.php?action=addfavorite&tid=' . $tid['tid'] . '">Add to Your Favourites</a>';

You have an extra single quote in there.

ayushchd

3:32 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



<?
echo
"<a href=\"/forums/usercp2.php?action=addfavorite&tid='" . $tid['tid'] . "'\">";
?>

try if this works

GamingLoft

3:32 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



thanks it works, sorry for the useless thread, i feel really dumb about this. -.-'

jatar_k

3:56 pm on Jul 30, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



no need to feel dumb at all, sometimes you just need an extra set of eyes