954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Why doesn't this link work

I am building a search engine and trying to get the title to be a link and in the code it looks like this

echo("<img src='$Thumbnail' width='90' height='75>
<a href=\"watchvideo.php?ID=$id\">$title</a>
$description");


and i want the "watchivideo.php?ID=$id" to have the ID of the video in the database, and the link to be the title of the video, but the code is only showing the thumbnail and description, what am i doing wrong in the code?

zacharysr
Newbie Poster
23 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Hard to say what the problem is from a single line of code.

pritaeas
Posting Expert
Moderator
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

I do not know if this causes the error but you are missing an apostrophe after 75 in height='75.

Also check if $title contain anything.

broj1
Posting Whiz
359 posts since Jan 2011
Reputation Points: 29
Solved Threads: 43
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: