Hi gsystems,
I'd recommend you to search for the "knowledge base script" at Google. I am sure you will find the required script for your purpose. I know of such a script called 'PHPKB' that is available as hosted service as well as owned license. It is available with support for MySQL database and MS-SQL server databases.
With regards,
Ajay Chadha