@sigit_p
and my hope the hyperlink will be direct to pdf file
You can try this way:
//get file
$imglink = $_GET["file"] .".pdf";
//echo out file.pdf
echo '<a href="'.$imglink.'">';
LastMitch
Industrious Poster
4,132 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@sigit_p, you are getting the "broken link" icon because of the image element you have as content for the hyperlink: src="'.$imglink['file']. Based on your code, this is not a source for an image.
JorgeM
Industrious Poster
4,007 posts since Dec 2011
Reputation Points: 294
Solved Threads: 544
Skill Endorsements: 115