Jump to content

PHP Give link to string!!!


jomagi

Recommended Posts

Hi there!

 

I'm building a website with php/mysql, I create a table with three fields (id/logotipo/link) all TEXT field less id. Now with PHP I can show the records but how can I give the action of link, for the user click and go to the page listed. I want to make the image clickable and at botton show the string stored in MySQL with linkage too.

 

It's possible make image linkage or only can do that with the string???

 

Thanks for the help!

Link to comment
https://forums.phpfreaks.com/topic/145761-php-give-link-to-string/
Share on other sites

Well of course you can, but this is basic HTML 101.

 

So say you have a mysql record: $row[link];

 

You would just do this:

 

<a href="$row[link]">IMAGE</a>

 

Then if you want to also show a link, it's the same thing:

 

<a href="$row[link]">$row[link]</a>

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.