title: PDO insert into with SELECT and ON DUPLICATE KEY UPDATE
body: <p>I use the below query with succes, this query is only executed if a row in data_advertentie with the ID exists.</p>
  
  <pre><code>INSERT INTO data_contactgegevens (ID_advertentie, telefoonnummer, website)
  SELECT ID_advertentie, :telefoonnummer, :website FROM data_advertenties
  WHERE ID_advertentie = :ID_advertentie AND unieke_hash_plaatsen = :hash_plaatsen
  </code></pre>
  
  <p>Now i want to add a ON DUPLICATE KEY, so if the row exists in data_contactgegevens the row wil be updated.</p>
  
  <p>Please help....</p>