<?php
// Processes changes to Knowledgebase entries.
// Include Configuration File
require_once('../includes/config.inc');
// Set Page Title and Include HTML Header
$page_title = 'HOW - Knowledgebase Admin Area';
include_once('../includes/header.html');
// 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.
<?php
echo ("<H5>[ <A HREF='kbadmin.php'>Knowledgebase Administration</A> ]</H5>");
echo ("<H5>[ <A HREF='../index.php'>Main System Menu</A> ]</H5>");
// Include HTML footer.
include_once('../includes/footer.html');
?>