title: how i can put (dash or underscore) between words in (select php,mysql)?
body: <p>i have selected some rows from mysql</p>
  
  <p>and i want put underscore between the words</p>
  
  <p>like this :</p>
  
  <pre><code>&lt;?php
  $query='SELECT * FROM subcates WHERE maincates_id=1';
  $result=mysql_query($query);
  while($row=mysql_fetch_array($result, MYSQL_ASSOC)){
      echo "&lt;li&gt;&lt;a href='".$row['name'].".php?c=".$row['id']."&amp;gov=1&amp;h=1'&gt;".$row['name']."&lt;/a&gt;&lt;/li&gt;";    
  }
  ?&gt;
  </code></pre>
  
  <p>i want when select the name give me this :</p>
  
  <p>in <code>database ==&gt; first second</code> </p>
  
  <p>i want it when <code>selected ==&gt; first_second</code></p>
  
  <p>thx</p>