code given can only displays recently added youtube video image and category of the video . but when i add need data into the database the old image and category will be replaced by the new image and category. but what i need is to store the previous displayed image and category with in the page along with recently added
<a target='_blank' href='updatespot-information.php?ide=<?php echo"$lastid"; ?>'>
<img style='width:100%; min-height:115px; padding:0px; border:#ccc solid 1px;' src='http://i2.ytimg.com/vi/<?php echo"$r"; ?>/0.jpg'>
</a>
<b id='viewfont'>Category: </b>
<a target='_blank' href='updatespot-information-category.php?ide=Animation Videos'>Animation Videos</a>