oregoncurtis Posted June 10, 2008 Share Posted June 10, 2008 Hey all, I'm building my own blog from scratch and i want to add comments, but i'm not exactly sure how to go about this. Should i create a new table in mySQL that's separate from my blog table? What rows/ columns will i need? Here's the site: http://junkdrawer.web44.net Please let me know if this is in the wrong section. ( i know this falls into mySQL and php) Thanks! -Curtis Quote Link to comment Share on other sites More sharing options...
oregoncurtis Posted June 10, 2008 Author Share Posted June 10, 2008 Well does anyone have any good links to tutorials? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted June 10, 2008 Share Posted June 10, 2008 Do your blog entries have IDs in the table? I'd assume they do, correct? If they do, simply make a comments table and correspond each comment with the blogid and also store the date, username, etc. Quote Link to comment Share on other sites More sharing options...
rarebit Posted June 10, 2008 Share Posted June 10, 2008 Yes, i'd use a separate table, because not every blog would have comments and some would have multiple. As for the fields, it depends upon you, obviously you'll want content, a reference to the blog, maybe a title, probably title... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.