title: how to remove %20 in the url in php
body: <p>Current Code:    </p>
  
  <pre><code>&lt;?php
  
  include('conn.php');
  $sql = mysql_query("select min(news_id) 'min' from news");
  $res = mysql_fetch_array($sql);
  $qry=mysql_query("select * from news order by date(post_date) desc,priority desc ");
  while($row1=mysql_fetch_array($qry)) {
      &lt;p class='news_title'&gt;&lt;a href='newsdetail.php?id=".urldecode($row1['news_heading'])."'&gt;{$row1['news_heading']}&lt;/a&gt;&lt;/p&gt;
  }
  
  ?&gt;
  </code></pre>
  
  <p>As I am passing the heading to the next page ... </p>
  
  <p>The url in the next page is displaying like this</p>
  
  <blockquote>
    <p>newsdetail.php?id=In%20front%20%20of%20the%20houses</p>
  </blockquote>
  
  <p>I need to display like this:</p>
  
  <blockquote>
    <p>newsdetail.php?id=In front of the houses</p>
  </blockquote>