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

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

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

echo '<H1>Solutions Knowledgebase</H1>';

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

// Query the database.
$entryid = $HTTP_GET_VARS['entry'];
$query = "SELECT * FROM knowledgebase WHERE solutionid=$entryid ORDER BY title;";		
$result = mysql_query($query)
   or die("Invalid query: " . mysql_error());
$num_rows = mysql_num_rows($result);
while($i = mysql_fetch_row($result)) { 
	echo ("<H3>$i[2]</H3>");
	echo ("<H4>($i[1])</H4>");
	echo ("<P><B>Keywords:</B> $i[3]");
	$i[4] = nl2br($i[4]);
	echo ("<P><B>Problem:</B><BR>$i[4]</P>");
	$i[5] = nl2br($i[5]);
	echo ("<P><B>Solution:</B><BR>$i[5]</P>");
	}
echo ("<P><B><A HREF='javascript:history.back()'>Back to Previous Page</A></B></P>");
// Include HTML footer.
include_once('../includes/footer.html');
?>
Return current item: Helpdesk Over Web