Jump to content

Create Link from Database Query


webdevdea

Recommended Posts

   echo '<p> <b>'.$row['topictitle'].'</b> '.$row['topicdescription'].'</p>'   ;

Im trying to make the 'topicdescription' a clickable link. I am trying to make my personal pdf library easier to access for my friends, so when they query the database I want it so they can just click on the link to download the material. Please and thank you .

I have tried a few different things but nothing works so far. I thought I would just bring it to the experts.

Link to comment
https://forums.phpfreaks.com/topic/286212-create-link-from-database-query/
Share on other sites

Where should the link go to? The correct syntax would be to wrap an achor tag around $row['topicdescription]

 echo '<p> <b>'.$row['topictitle'].'</b> <a href="link/location.php">'.$row['topicdescription']}.'</a></p>';

Change link/location.php to what you are linking to.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.