jomagi Posted February 18, 2009 Share Posted February 18, 2009 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 More sharing options...
allworknoplay Posted February 18, 2009 Share Posted February 18, 2009 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> Link to comment https://forums.phpfreaks.com/topic/145761-php-give-link-to-string/#findComment-765297 Share on other sites More sharing options...
jomagi Posted February 18, 2009 Author Share Posted February 18, 2009 Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/145761-php-give-link-to-string/#findComment-765365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.