PHP Classes

File: fwphp/glomodul/blog_akram/DeleteCategory.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/blog_akram/DeleteCategory.php   Download  
File: fwphp/glomodul/blog_akram/DeleteCategory.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: ver 11.0.1.0 mnu, adrs, msg, mkd. Same module db adapter for any shared db adapter
Date: 1 year ago
Size: 447 bytes
 

Contents

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

Confirm_Login();

if(isset(
$_GET["id"])){
   
$IdFromURL=$_GET["id"];
   
$ConnectingDB;
 
$Query=get_cursor("DELETE FROM category WHERE id='$IdFromURL'", 'dd');
  if(
$Query){
   
$_SESSION['SuccessMessage']="Category Deleted Successfully";
   
Redirect_to("Categories.php");
  }else{
   
$_SESSION["ErrorMessage"]="Something Went Wrong. Try Again !";
   
Redirect_to("Categories.php");
  }
}

?>