title: When I update my news my image is not updating correctly (using tim.php to generate thumbnails)
body: <p>Im develloping a news-edit.php file where I can update my news based on the id of the news that I pass in url.</p>
  
  <p>In my form I have a div where I show image sent in my input file after I submit my form and get my sucess message 'sucess updating'.</p>
  
  <p><strong>The problem is, when I update my news, the image that is showing in this div dont update, in my folder the image is updated, but on my page the image is still my old image.</strong></p>
  
  <p>Do you see why this can be happening?</p>
  
  <p>Because I have also a <code>&lt;a href&gt;</code> link in this div, and this link have a rel="shadowbox" and When I click in this link Im always getting my last image updated.
  And I have the same path on my img and on my link.</p>
  
  <p>The only difference is that for my image Im using tim.php to generate thumbs, and If I dont use tim.php to show image it works fine...</p>
  
  <p><strong>And If I update not only image of news but also update title of my news it works fine, in my div I get my last image updated.</strong></p>
  
  <p><strong>This is my php:</strong></p>
  
  <pre><code>//first I have a list of news and each news have a link where I pass id of news in a variable &amp;newsid
  $newsid = $_GET['newsid'];
  //then I read my news to see if that id of news exist
  $read = $pdo-&gt;prepare("SELECT * from news WHERE id_news = ?");  
  $read-&gt;bindParam(1, $newsid, PDO::PARAM_INT);
  $read-&gt;execute();
  $result = $read-&gt;fetch(PDO::FETCH_ASSOC);
  //if dont exist I show an error message
  if(!$read-&gt;rowCount() &gt;=1){
      echo 'The News that you are trying to update dont exists.';
  }
  
  //then I store my post variables when my form was submited
  if(isset($_POST['sendForm'])){
      $f['title'] = $_POST['title'];
  
      //if user sends an image in my input file I will upload to my folder
      if(!empty($_FILES['img']['tmp_name'])){
          $folder = '../uploads/images/';       
          $img = $_FILES['img'];
          $ext = substr($img['name'],-3);
          $name = $f['title'];
          $f['img'] = $name.'.'.$ext;
          uploadImage($img['tmp_name'], $name.'.'.$ext, '300', $folder);
       }
      //I do my update 
      $updNot = $pdo-&gt;prepare("UPDATE news set thumb =?, title=? WHERE id_news = ?");
      $updNot-&gt;bindParam(1,$f['img']);
      $updNot-&gt;bindParam(2,$f['title']);
      $updNot-&gt;bindParam(3,$newsid);
      $updNot-&gt;execute();
  
  echo 'sucess updating';
  }
  </code></pre>
  
  <p><strong>This is my form:</strong></p>
  
  <pre><code>&lt;form  method="post" enctype="multipart/form-data"&gt;
  
  &lt;div&gt;
      &lt;span&gt;Title&lt;/span&gt;
      &lt;input type="text" name="title"/&gt;
  &lt;/div&gt;
  
   &lt;!--this is my div where I show my last updated image and where I have my input file--&gt;
   &lt;div&gt;
      &lt;span&gt;Image:&lt;/span&gt;
          &lt;input type="file" name="img" accept="image/gif, image/jpg, image/jpeg, image/png" /&gt;
          &lt;?php
          echo '&lt;div&gt;';
              echo '&lt;img src="../tim.php?src=../uploads/images/'.$result['thumb'].'&amp;w=50&amp;h=45&amp;q=100&amp;zc=1"/&gt;'; 
              echo '&lt;a href="../uploads/images/'.$result['thumb'].'" rel="shadowbox"&gt;See actual image&lt;/a&gt;';
           echo '&lt;/div&gt;&lt;!--actual_image--&gt;';  
          ?&gt;                             
   &lt;/div&gt;
  
  &lt;input type="submit" title="Update" value="Update" name="sendForm"/&gt;
  
  &lt;/form&gt;
  </code></pre>