in reply to Support Database.

You may want to take a look a Request Tracker. I believe that it already does what you are after. Here is an excerpt from the the Features section of the website.


Features

RT is a robust ticketing system designed for the small-to-medium sized enterprise. It can be used for customer support, bugtracking, trouble ticketing, or any other purpose for which a group of folks need to keep track of a list of tasks. It features a number of technologies designed to make it easy to keep track of a large number of tasks, issues and projects:


Being someone who has tried to build a support desk, I would strongly recommend using free stuff that already exists. If you still want to do it yourself, then have a look at what other people have done.

Kristofer A. Hoch