php - how to define variable from mysql output -
I have the following variable that returns my URL as necessary. But before I echo in my HTML code I need to run str_replace () to change the character.
$ url = str_replace ("% 3A", ":", "nl2br ($ line ['url']).");
As it is "nl2br ($ line ['url'])." URL contains% 3A instead of colon, and due to some reason it is my link like
http://www.mydomain.com/http%3A//url.com
I'm not really sure what your question is, but it seems you want :
$ url = urldecode ($ row ['url']);
% 3A is a colon (:).
Comments
Post a Comment