Ok so far I have one database with 3 tables:
Table1: Videos
Table2: Comments
Table3: Views
Videos is structured like this:
[ID] [YouTube ID] [Date] [Rating] [User]
Comments is structured like this
[ID] [VideosID] [Comment] [DATE] [IP]
Views is structured like this
[ID] [VideoID] [IP] [DATE]
So basicly when a user goes to view a video, it checks to see if that IP address has viewed the video, and if it has it doesn't insert a new row, but if it hasn't it inserts a new row
I need some help on what is the best way to do all three of these things in a fast and efficient way...
Thanks