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 Link to comment https://forums.phpfreaks.com/topic/109510-comments-on-blog/ 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? Link to comment https://forums.phpfreaks.com/topic/109510-comments-on-blog/#findComment-562446 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. Link to comment https://forums.phpfreaks.com/topic/109510-comments-on-blog/#findComment-562454 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... Link to comment https://forums.phpfreaks.com/topic/109510-comments-on-blog/#findComment-562455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.