title: PHP fputcsv outputting double records
body: <p>I'm using this fputcsv code:</p>
  
  <pre><code>$result = mysql_query('SELECT * FROM `mash`');
  if (!$result) die('Couldn\'t fetch records');
  $fp = fopen('testCSV.csv', 'w');
  if ($fp &amp;&amp; $result) {
      while ($row = mysql_fetch_array($result)) {
          fputcsv($fp, array_values($row));
      }
      die;
  }
  fclose($fp);
  </code></pre>
  
  <p>It outputs the CSV great but there are two columns for each mysql column (so everything is doubled)</p>
  
  <p>could anyone see why that would be?</p>