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

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -