how to refresh div without refreshing all php data
<p>I would think this is simple but cannot figure it out for the life of me.. I want to refresh a div without refreshing everything.. I have a timer on each image that counts down from 24 hrs to 0 then disappears.. it all works but I cant seem to just refresh the timer div.. </p>

<p>My php - </p>

<pre><code>$date = date('Y-m-d H:i:s');

$sql = "SELECT * FROM images";
$result = $conn-&gt;query($sql);
if ($result-&gt;num_rows &gt; 0) {
while($row = $result-&gt;fetch_assoc()) {
    $path = $row['path'];
    $user = $row['user'];
    $update = $row['update_date'];

    $timeFirst  = strtotime($date);
    $timeSecond = strtotime($update);
    $timeSecond = $timeSecond + 86400;
    $timer = $timeSecond - $timeFirst;

if($timer &lt;= 0){

}else{
    echo '&lt;img id="pic" src="/v2/uploads/'.$path.'"/&gt;';
    echo '&lt;div id="user"&gt;#'.$user.'&lt;/div&gt;';
    echo '&lt;div id="timer"&gt;'.$timer.' &lt;/div&gt;';

    }
  }
}
</code></pre>

<p>I would like to refresh just the timer at 1 second intervals not the images.. I know I can use ajax to call it from an external file that loads all the content also as far as I know..Still new at this. *side not this is chopped up code for the example not all of it.</p>