Well I need to implement the comments feature on a custom coded social networking website. The comments need to be implemented on various pages like videos, pictures, albums etc etc similar to facebook.
What would be the best practice for implementing this ?
Making one global comments table with fields like this, and grab comments based on their comment type on required page.
commentid int(10)
userid int(10)
comment_type ENUM('video','picture')
comment varchat(200)
parent int(10)
or making separate tables for each comment?