Lokang 

PHP and MySQL

Delete

It includes User and Database classes and call for the function destroy to delete a user from database.

 

<?php
include_once 'Database.php';
include_once 'User.php';
$destroy = new User();
$destroy->destroy($_GET['id']);
header('Location: select.php');

File: destroy.php