title: Update MySql Table from CSV using PHP
body: <p>I need a PHP script which will update existing MySQL table getting data from a CSV. Table field <code>hasweb</code> need to be updated comparing a field <code>consultant_id</code>.</p>
  
  <p>So MySql query should be </p>
  
  <pre><code>UPDATE user_data 
  SET hasweb="something" 
  WHERE consultant_id = "something";
  </code></pre>
  
  <p>Please help me to write a PHP script which can execute this query as many times as needed, depending upon CSV data.</p>