|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Forum data storage
How to store data(post) for buletin board system using mySQL?
Did you need to use 1 table per thread? or any other ways? |
|
#2
|
||||
|
||||
|
I'm comfused... But theoretically you can set a table up so that each thread is just an entry linked together using group ID's.
Hope this helps, Mark. |
|
#3
|
|||
|
|||
|
I'm thinking about this way:
Code:
table : thread 1 ++++++++++++++++++++++++++++ + id + Subject + Post + ++++++++++++++++++++++++++++ + 1 + anything + post + ++++++++++++++++++++++++++++ the entry with id #1 will be the mainthread/title, and other entries as posts in that thread, possible? Last edited by flixxer : May 20th, 2004 at 07:25 AM. |
|
#4
|
||||
|
||||
|
But that would require you to have a table for each post would it not; assuming that id is the 'primary key'.
Are we talking about a multiple messages to a thread or just a flat thing? Mark. |
|
#5
|
|||
|
|||
|
I found that areally stupid way of dealing with this thing, if the board is working on real world then it will ended up with tons of table in the database.
|
|
#6
|
||||
|
||||
|
I dont concure on that one, i set up a simple muti-threaded message board in PHP when i first started out and the way i worked it we were using a single table for each forum. Replies being linked to their parent thread using ID's. Is this not what your wanting to do?
Mark. |
|
#7
|
|||
|
|||
|
Close enough
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Forum data storage |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|