title: how to update mysql table automatically?
body: <p>Here is my problem:</p>
  
  <pre><code>    USER TABLE
  
  id  uploader_name   email
  1   abhijit         xxx@email.com
  2   rahul           abc@email.com
  
  
      UPLOAD TABLE
  
  ID  USER_ID     IMAGE_URL
  1   1           UPLOAD/XXX.JPG
  2   1           UPLOAD/ABC.JPG
  3   2           UPLOAD/CD.JPG
  </code></pre>
  
  <p>How to connect <code>USER_ID</code> in table <code>UPLOAD TABLE</code> with <code>id</code> in table <code>USERS TABLE</code>? So, the <code>USER_ID</code> field automatically update.<br>
  Now my problem is how to add data in <code>USER_ID</code> in table <code>UPLOAD TABLE</code>. I am able to add data in every field except <code>USER_ID</code>.</p>