title: PHP : Updating new image still showing the old image
body: <p>So I am creating a new folder everytime if folder not exists using mdkir.</p>
  
  <pre><code>$dir_name = '../../assets/contestant_double/'.$event_id.'eventPortfolio/';
  
  if(!is_dir($dir_name)){
      mkdir('../../assets/contestant_double/'.$event_id.'eventPortolfio/', 0777, true);
  }
  </code></pre>
  
  <p>Now I am trying to update my uploaded image on that folder. And its working fine when i look on that designated directory</p>
  
  <pre><code>$static_name = $event_id."d".$getThed1d2."_contestant_";
  $extension = pathinfo($name, PATHINFO_EXTENSION);
  $theRealName = $static_name.$lastDigit.".".$extension;
  echo $theRealName;
  </code></pre>
  
  <p>But when i try to get the image why is it still showing up the old image instead the new one?</p>
  
  <pre><code>&lt;img class="img_here_edit" src="../assets/contestant_double/'.$event_id.'eventPortfolio/'.$soc_sql['images'].'" width="100%" &gt;
  </code></pre>
  
  <p>I doubt but I'm not sure that its on my new created directory mdkir which has 0777 because those of my code are working fine in my other regular folder? How do i solve this</p>