Location: PHPKode > projects > Helpdesk Over Web > how/kb/add-process.php
// Processes new knowledgebase entry.

// Include Configuration File

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

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

$category = $_POST['category'];
$title = $_POST['title'];
$keywords = $_POST['keywords'];
$problem = $_POST['problem'];
$solution = $_POST['solution'];

$sql = "INSERT INTO knowledgebase (category, title, keywords, problemtext, solutiontext) VALUES ('$category', '$title', '$keywords', '$problem', '$solution')";
$result = mysql_query($sql)
   or die("Invalid query: " . mysql_error());

echo "<H3>New Entry Added</H3>";
echo "<P>Entry for <b>$title</b> created. <P>Please click <a href='kbadmin.php'>here</a> to return to the Knowledgebase Administration screen.";
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