Location: PHPKode > projects > Helpdesk Over Web > how/kb/delete.php
<?php
// Deletes Knowledgebase Entry.

// Include Configuration File
require_once('../includes/config.inc');

// Set Page Title and Include HTML Header
$page_title = 'HOW - Knowledgebase Admin';
include_once('../includes/header.html');

// Connect to Database
require_once ('../includes/mysql_connect.php');

// Retrieve ISBN from header and execute delete query.
$entryid = $HTTP_GET_VARS['entry'];
$sql = "DELETE FROM knowledgebase WHERE solutionid = '$entryid' LIMIT 1";
$result = mysql_query($sql)
   or die("Invalid query: " . mysql_error());
echo ("<H1>Solution Entry Deleted.</H1>");
echo ("<H5>[ <A HREF='kbadmin.php'>Knowledgebase Administration Menu</A> ]</H5>");
echo ("<H5>[ <A HREF='../index.php'>Main System Menu</A> ]</H5>");

// Include HTML footer.
include_once('../includes/footer.html');
?>
Return current item: Helpdesk Over Web