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. Quote 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'] ? Quote 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> Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.