Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to continue or start a new thread in bulletin boards?

Status
Not open for further replies.

Dan01

Programmer
Jun 14, 2001
439
US
Hi, I'd like to process a form that either appends the text to an existing file (thread in BBS), or creates a new html file for a new thread. Is Java used for this? Does anyone have sample code for this in Java? Thanks, Dan.
 
I myself work program in file base in my first job. It is difficult to make sure the file up-to-date.

I think you maintain the bbs in database.It is easy to implement the hierarchy. e.g. who is the poster of this thread and who is the replier of this thread.
Although more programming work is needed when you start writing for bbs. But after you have finished basic function like start a post, reply a post and delete a post(for bbs operator), you may find it is very easy to finish the bbs.
Database also help you to solve the problem of two posts in the same time(it is difficult to solve in file base).

you may use jdbc to connect to mysql.
 
Thank you for the reply (I just got back from vacation). Do you recomment a one to many relationship, new threads stored in one table, and replys in the many table. Dan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top