title: Group SQL results together?
body: <p>I have a query on my website which brings back contents of a column cell when another cell is equal to a certain number.</p>
  
  <p>However my PHP code only pick ups the content in the first row it comes to. Is there a way I can group/combine the other row results?</p>
  
  <pre><code>function bookmarkTags($siteID) {
  
      $id = $siteID;
  
      $db = new DB();
      $db-&gt;connect();
  
      $sql = mysql_query("SELECT tags FROM share WHERE site_id = $id");
      $result = mysql_fetch_assoc($sql);
  
      $delimiter = " ";
      $tags = explode($delimiter, $result['tags']);
  
      return $tags;
  }
  </code></pre>