Its alot easier just to use mysql and while and foreach commands (actually im not sure if its foreach or for, my C++ knowledge is screwing my up) Just make it print out the catergory, then any forum what the cat id of the catergory, then the stats could be like the row count of the posts table and the topic table where the forum id is the id of the forum, its alot easier then using arrays.