title: MySql ENCLOSED BY double quote
body: <p>What's wrong with this code in a php file?</p>
  
  <pre><code>$q = "LOAD DATA LOCAL INFILE  '$file'  INTO TABLE $table  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY  '"'  LINES TERMINATED BY '\r\n' IGNORE 1 LINES" ;
  echo "LOAD DATA query = " . $q . "&lt;br /&gt;";
  mysqli_query($DBlink, $q) or die (mysqli_error($DBlink));
  </code></pre>
  
  <p>It looks like many examples I've seen, but I get the error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /users13/domains/efsowell.us/web/ed/JOCMemDB/CSV_MySQL.php on line 66</p>
  </blockquote>