MINI MINI MANI MO
<?php
ob_start();
extract($_REQUEST);
require_once 'library/config.php';
require_once 'library/functions.php';
//remove image from galleryimg folder
$sql=mysql_query("select * from photogallery where id='$id'");
$row=mysql_fetch_array($sql);
unlink("../../galleryimg/$row[image]");
$sql = "delete from photogallery where id='$_GET[id]'";
$result = mysql_query($sql) or die(mysql_error()) ;
//if successful redirect to delete_multiple.php
if($result)
{
echo "<script type='text/javascript'>alert('Record Sucecessfully Deleted!'); </script>";
echo "<meta http-equiv=\"refresh\" content=\"0;URL=show-image.php\">";
}
else {
echo "<script type='text/javascript'>alert('Sorry, Please try again...!'); </script>";
echo "<meta http-equiv=\"refresh\" content=\"0;URL=show-image.php\">";
}
?>
OHA YOOOO