don57 Posted August 26, 2013 Share Posted August 26, 2013 I have put an URL in MySQL - \"http://www.videolan.org/vlc/\" target=\"_blank\" $app_download=$row['AppDownload']; I try to call it from my php code - echo "<a class=\"fancy_button\" href=$app_download><span style=\"background-color: #004080;\">Download</span></a>"; The URL is $app_download on my browser I am showing - http://localhost/%22http://www.videolan.org/vlc//%22 I am thinking my formatting is wrong but can find no reference. Any help would be appreciated thanks. Quote Link to comment Share on other sites More sharing options...
requinix Posted August 26, 2013 Share Posted August 26, 2013 AppDownload needs to be only a URL. No quotes, no target=_blank. Then echo "Download"; Quote Link to comment Share on other sites More sharing options...
vinny42 Posted August 31, 2013 Share Posted August 31, 2013 ps: Use single-quotes in PHP, it mkase your HTML more readable and reduces bugs with the escaping slashes: echo '<a class="fancy_button" href="'.$app_download.'" target="_blank"><span style="background-color: #004080;">Download</span></a>'; Quote Link to comment 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.