Jump to content

Trying to use URL from MySQL in php


don57

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/281576-trying-to-use-url-from-mysql-in-php/
Share on other sites

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.