Here is my code
@$sql="select * from mp_images where id='5' and status='0'";
@$query=mysql_query($sql);
while(@$row=mysql_fetch_array($query))
{
@$image=$row ['photo'];
?>
<img src="image/<?php echo $image; ?>" width="360" height="150">
<?php
}
?>
I want to display current latest images after I have added it into database
mysal_*extension anymore. deprecated means it's no longer supported, and will be removed some time in the future. Switch tomysqli_*orPDO. Also: never suppress errors. They're still being issued (which slows you down) and debugging is made a lot harder. Errors are there for a reason, use them to your advantage. Think of them as a fire alarm: you can use earplugs to not hear the warning and burn to a crisp, or you can get a fire extinguisher to stop the fire burning your house down. I know which one I'd prefer...