enchance Posted September 19, 2007 Share Posted September 19, 2007 Would any of you guys know the code to develop an inline commenting system on articles? Like the kind you see in blogs were a user posts a reply and it gets appended at the end of the page like magic. Quote Link to comment Share on other sites More sharing options...
d22552000 Posted September 19, 2007 Share Posted September 19, 2007 Ya, either use a flat file database per article or use mysql, once you have chosen what you will use then you can message back and I can help you out Quote Link to comment Share on other sites More sharing options...
AdRock Posted September 19, 2007 Share Posted September 19, 2007 Ya, either use a flat file database per article or use mysql, once you have chosen what you will use then you can message back and I can help you out What he means about a flat file database is use a text file that gets appended whenever a new comment is added Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 19, 2007 Share Posted September 19, 2007 I would use a database and in the comments table, you have a parentID or something, that shows which comment it was a reply to. Then you use a recursive function like this: http://www.phpfreaks.com/forums/index.php/topic,159658.msg696481.html#msg696481 To sort them out. Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 20, 2007 Share Posted September 20, 2007 Something like www.digitalmidget.com/php_noob/comment.php perhaps? 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.