MINI MINI MANI MO

Path : /home/kgembroi/public_html/secureadmin/admin/
File Upload :
Current File : /home/kgembroi/public_html/secureadmin/admin/delete_content.php

<?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 page_contents where id='$id'");
$row=mysql_fetch_array($sql);
 
unlink("../../galleryimg/$row[image]");

$sql = "delete from page_contents 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-contents.php\">";
} 
else {
echo "<script type='text/javascript'>alert('Sorry, Please try again...!'); </script>";
echo "<meta http-equiv=\"refresh\" content=\"0;URL=show-contents.php\">";
}
?>

OHA YOOOO