how to define variable from mysql output
<p>I have the following variable which returns my URL as needed. But i need to run str_replace() on it to replace a character before echoing it into my HTML code.</p>

<pre><code>$url = str_replace("%3A", ":", " . nl2br( $row['url']) . ");
</code></pre>

<p>As it stands the " . nl2br( $row['url']) . " contains %3A instead of the colon in the URL and for some reason its rendering my links like this</p>

<pre><code>http://www.mydomain.com/http%3A//url.com
</code></pre>
