|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I've been thinking on this awhile but I'm too dumb to figure it out.
![]() How would the tables of the database look in order to make a news system with options of posting comments for each news item?
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#2
|
|||
|
|||
|
you would have a table for news, and a table for comments, you could also have a table for topics as well, ill show you abasic exaple
TOPIC topic_id topic_title NEWS news_id topic_id date summary author_id title then for the comments COMMENTS comment_id news_id name homepage summary date using a database structure like this you could make a news system with comments just with each news post seach for comments with the news post id something like this SELECT * FROM comments WHERE news_id=$news_id something like that |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > News system with comments? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|