in reply to bulletin board

As the others have said, the code above has many problems. If you just want a good working bulletin board, you should probably look for one of the many that others have already written. If you are doing it for a learning experience, try to post smaller portions of code and ask about a specific problem instead of posting the entire code and asking for "any problems."

In general, writing a good bulletin board is a tricky thing, and can be much harder than it looks. I've written my own and it's now at 4000 lines (and growing), and I tend to write small, efficient code. :) Here are some things to keep in mind when rolling your own: