hai,
actually this problem comes when you are using the IE browser or neoplanet browser
use this type of coding
if your page is showimage.php
instead of using the header function in php or location.href=showimage.php in javascript
use the following code then you will not get any old images
<?
echo"<META HTTP-EQUIV=\"Refresh\" Content=\"0; URL='showimage.php?imagno=20' \">";
?>