title: Writing a PHP file to read from CSV and execute SQL Query
body: <p>I would like a PHP script to read the contents from a CSV file in the following format</p>
  
  <pre><code>id, sku
  1,104101
  2,105213
  </code></pre>
  
  <p>there are a total of 1486 entries, I believe that it's better to use a for loop instead of while !EOF.</p>
  
  <p>After that, I would like to perform SQL query on a database named m118, table catalog_product_entity.</p>
  
  <p>The query would be like UPDATE sku=$csvSku WHERE id=$csvId</p>
  
  <p>Being a novice at both PHP and MySQL, I do not know where to start coding.</p>