FireNet 64 Posting Whiz in Training

Example:
Navigate: PHP Code Library > PHP > Sub1 > Title V


Any ideas, tutorials no how to do that using php & mysql ? each category should be able to have items and more categories under it. It should use a single table to store all the category titles.

I am looking for tutorials that explain how to do this, though I've an idea.

I am looking for some method that would allow easy deletion of a category (and have it's sub categorys be deleted).

I am not looking to learn how to build an interface for it, but rather optimizing the sql queries