jobs1109 Posted August 20, 2011 Share Posted August 20, 2011 Hi Everyone. I get the following data from a result from database search <?php echo $rsjobs['CompanyURL'];?> It prints out the url but when I try to turn it into a clickable link it does not work Here is the coding I have so far. <a href="<?php echo $rsjobs['CompanyURL'];?>"><?php echo $rsjobs['CompanyURL'];?></a> What am I doing wrong ? please help. Link to comment https://forums.phpfreaks.com/topic/245291-making-mysql-query-result-a-link/ Share on other sites More sharing options...
MasterACE14 Posted August 20, 2011 Share Posted August 20, 2011 what value is in $rsjobs['CompanyURL'] ? Link to comment https://forums.phpfreaks.com/topic/245291-making-mysql-query-result-a-link/#findComment-1259816 Share on other sites More sharing options...
harristweed Posted August 20, 2011 Share Posted August 20, 2011 <a href="<?php echo "{$rsjobs['CompanyURL']}\"> {$rsjobs['CompanyURL']}";?></a> Link to comment https://forums.phpfreaks.com/topic/245291-making-mysql-query-result-a-link/#findComment-1259817 Share on other sites More sharing options...
jobs1109 Posted August 20, 2011 Author Share Posted August 20, 2011 Hi Thanks for helping it works. D.S Link to comment https://forums.phpfreaks.com/topic/245291-making-mysql-query-result-a-link/#findComment-1259845 Share on other sites More sharing options...
jobs1109 Posted August 20, 2011 Author Share Posted August 20, 2011 what value is in $rsjobs['CompanyURL'] ? it just pulls the url submitted to the database. here check it out at HiringinHilo.com Link to comment https://forums.phpfreaks.com/topic/245291-making-mysql-query-result-a-link/#findComment-1259846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.