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

// Include Configuration File

// Set Page Title and Include HTML Header
$page_title = 'HOW - Knowledgebase Admin';

// 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.
Return current item: Helpdesk Over Web