PHP Classes

File: fwphp/glomodul/blog_akram/DeleteAdmin.php

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

Contents

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

Confirm_Login();

if(isset(
$_GET["id"])){
   
$IdFromURL=$_GET["id"];

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

?>