title: PHP script not exporting as csv
body: <p>Working on this script but I am having header already sent troubles on lines that allow you to download the CSV.</p>
  <p><a href="http://pastebin.com/6bTjBri5" rel="nofollow noreferrer">http://pastebin.com/6bTjBri5</a></p>
  <p>An error shows:</p>
  <blockquote>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/briancqc/public_html/config.php:5) in /home/briancqc/public_html/export.php on line 29</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/briancqc/public_html/config.php:5) in /home/briancqc/public_html/export.php on line 30</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/briancqc/public_html/config.php:5) in /home/briancqc/public_html/export.php on line 31</p>
  </blockquote>
  <p>Where would I add a <code>&lt;br&gt;</code> so after every row a new line starts?</p>
  <p>How it looks right now:</p>
  <p><img src="https://i.imgur.com/WJWqywX.png" alt="" /></p>
  <p>It all goes in a constant line for the export of the rows.</p>