Location: PHPKode > projects > Helpdesk Over Web > how/kb/edit-process.php
// Processes changes to Knowledgebase entries.

// Include Configuration File

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

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

$solutionid = $_POST['entryid'];
$category = $_POST['category'];
$title = $_POST['title'];
$keywords = $_POST['keywords'];
$problemtext = $_POST['problemtext'];
$solutiontext = $_POST['solutiontext'];

$sql = "REPLACE INTO knowledgebase (solutionid, category, title, keywords, problemtext, solutiontext) VALUES ('$solutionid', '$category', '$title', '$keywords', '$problemtext', '$solutiontext')";
$result = mysql_query($sql)
   or die("Invalid query: " . mysql_error());
<H3>Solution Entry Updated</H3>
<P>The selected entry has been updated. 
echo ("<H5>[ <A HREF='kbadmin.php'>Knowledgebase Administration</A> ]</H5>");
echo ("<H5>[ <A HREF='../index.php'>Main System Menu</A> ]</H5>");

// Include HTML footer.
Return current item: Helpdesk Over Web