title: How to update multiple data with implode in PHP
body: <p>I have a script for inserting multiple data in PHP with <code>implode</code> method but I don't know how to use it in UPDATE syntax.</p>
  
  <pre><code>&lt;input type="text" name="field_name" value="unyil"/&gt;
  </code></pre>
  
  <p>With PHP like this:</p>
  
  <pre><code>foreach($_POST['id_table'] as $row=&gt;$id_table)
  {
      $id_table=$id_table;
      $full_name=$_POST['full_name'][$row];
  
      $query_row[] = "('$id_table','$full_name')";
  }
  
  $sql="INSERT INTO tb_client_table_rows (id_table, full_name) VALUES " . implode(',',$query_row); 
  
  if (!mysql_query($sql))
  {
      die('Error: ' . mysql_error());
  }
  </code></pre>
  
  <p>But how can I use that for UPDATING row values?</p>