PHP Classes

File: fwphp/glomodul/blog_akram/DelPost.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/blog_akram/DelPost.php   Download  
File: fwphp/glomodul/blog_akram/DelPost.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 1 year ago
Size: 521 bytes
 

Contents

Class file image Download
<?php
$title
='Delete Post' ;
require_once(
"ahdr.php");

Confirm_Login();


//if(isset($_POST["Submit"]))
if(isset($_GET['Delete']))
{

   
$DeleteFromURL=$_GET['Delete'];
   
   
$Query=get_cursor("DELETE FROM admin_panel WHERE id='$DeleteFromURL'", 'dd');

    if(
$Query){
     
$_SESSION['SuccessMessage']="Post Deleted Successfully";
     
Redirect_to("Dashboard.php");
    }else{
     
$_SESSION["ErrorMessage"]="Something Went Wrong. Try Again !";
     
Redirect_to("Dashboard.php");
     
    }
   
 
 
}

?>