title: remove commas from a string, and also print code for each word before and after the comma
body: <p>Hopefully the question title makes sense. </p>
  
  <p>Just wondering if it is possible to get data from a record in mysql, then remove all the commas and then print each item individually?</p>
  
  <p>I have a column called tags, and an example is in one of the records the tags are </p>
  
  <p><code>"rock,bass,alternative"</code></p>
  
  <p>What I want to do is remove the commas and then print the html code <code>&lt;a href ="/TAG NAME"&gt;</code> before and <code>&lt;/a&gt;</code> after each individual tag.</p>
  
  <p>So far my code is : </p>
  
  <pre><code> $id = $_GET['id']; 
  
  
   $station = mysql_query ( "SELECT * FROM `Stations` WHERE `ID` = '$id'" );
   $sta   = mysql_fetch_object ( $station );
  
  &lt;? echo "$sta-&gt;tags";?&gt; 
  </code></pre>