title: Imploding a MySQL array
body: <p>I'm having trouble imploding a MySQL database array, below is a sample of the code I am using:</p>
  
  <pre><code>mysql_select_db($database_wlast, $wlast);
  $query_category = "SELECT product_name FROM raw_materials WHERE category = '$_POST[category]'";
  $category = mysql_query($query_category, $wlast) or die(mysql_error());
  $row_category = mysql_fetch_array($category);
  
  $result= implode(',',$row_category);
  
  echo $result;
  </code></pre>
  
  <p>The result is the following:</p>
  
  <pre><code>Amber glass bottle 100ml, Amber glass bottle 100ml
  </code></pre>
  
  <p>i.e: it is spitting out the first value in the array twice and nothing else.</p>
  
  <p>Please help!</p>