Insert special characters to a string for web address
<p>Im fetching an array from my sql database, but the string has spaces in it (ie B54DT45 GDT4563 HaK7698).</p>

<p>This needs to go into a webadress like %30B54dT45%20 so that the outcome is 

<p>Here is my code:
$pid = mysql_query("SELECT cPushID FROM tblUsers WHERE intUserID='20' AND Length(cPushID) > 70 AND cAlerts = 'All'");
$url = rawurlencode("");
$msg = "test";</p>

<p>file_get_contents("http://domain/push.php?msg=$msg&amp;to=$url"); </p>

<p>The string in the database is something like  as an example. That exact string needs to be send to the push.php script on the remote server for it to run correctly</p>
