title: Import an excel (.csv) into MySQL using PHP code and an HTML form
body: <p>I know there are other posts similar to this, but everyone recommends just doing it directly in PHPMyAdmin into MySQL (Which works perfectly, but I need to import through an HTML form to PHP to MySQL.</p>
  
  <p>I would like to have an HTML form that collects a file. Then passes that file to a PHP script and I would like to know if it is possible to simply call a PHP function that converts a comma delimeted .csv file into MySQL and adds it to the database.</p>
  
  <p>Or is the only way to parse the file line by line and add each record?</p>