title: How to get ID row of updated row?
body: <p>This is my query:</p>
  
  <pre><code>INSERT INTO table (value) VALUES (value) ON DUPLICATE KEY UPDATE value=value
  </code></pre>
  
  <p>With <code>mysql_insert_id()</code> I get the new inserted ID, but how to get the ID of row updated?</p>
  
  <p>I tried <code>mysql_insert_id()</code> but, for updated row, I get 0.</p>