当用户更新他/她的个人资料图片时,它仍会显示之前的图片几分钟。我怎么能阻止这个?
下面是我试过的代码。我试过
$sqlImg = "SELECT * FROM profileimg WHERE userid='$id'";
$resultImg = mysqli_query($db, $sqlImg);
while ($rowImg = mysqli_fetch_assoc($resultImg)) {
echo "<div>";
if ($rowImg['status'] == 0) {
echo "<img src='uploads/profile".$id.".jpg?
t='.time()>";
}
斯蒂芬大帝