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><br />
$description<br />");

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?

Recommended Answers

All 2 Replies

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.