title: Handling dynamic CSV headings in PHP/Mysql
body: <p>I know the title isn't the most descriptive, but I can't think of a better way to describe it.</p>
  
  <p>Ultimately what I would like to do is this:</p>
  
  <p>I am making a system that handles import of data via CSV from several different companies. Naturally, the format from each company is slightly different, with different amounts of data in each column/heading and a different arrangement.</p>
  
  <p>I could either:</p>
  
  <ol>
  <li><p>Hard code the file format into the program, which is quick and simple to program, but not abstract or future proof</p></li>
  <li><p><strong>or</strong> provide "dynamicity" by allowing users to configure "file formats" in the system, by dragging and dropping CSV headings and saving presets for each incoming file format.</p></li>
  </ol>
  
  <p>I would like to do option 2, but how would I go about doing this?</p>
  
  <p>I am guessing a tagging style system would do it... but any advice would be appreciated.</p>
  
  <p>I am using PHP, MySQL, and CodeIgniter 2.0.2 if that helps, and also have access to all the Zend libraries in my app.</p>