Jump to content

comments on page


sfx81

Recommended Posts

Looks something like this, obviously i left out fields, but you'll get the point.

 

Video table:

video_id    |       title       |      url      |

32                  Rick Rol..       q28af8   

33                  The cat..       329af8   

34                   Born to ..       259d93 

 

 

Comment Table:

comment_id |    video_id      |   comment

1                     32                  omgz epic!

2                     32                  yes omgz epic!

3                     33                  thats a fat cat

 

Notice how the video_id in the comment table links to the video_id in the video table.

Link to comment
https://forums.phpfreaks.com/topic/112109-comments-on-page/#findComment-577511
Share on other sites

youtube has insane servers. They're, at any second, playing millions of videos(and hosting many more than what are currently playing). But yea, they have a Video table and a Video_Comment table, with a video key that references the video it's commenting on. Not hard to design. Very simple actually

Link to comment
https://forums.phpfreaks.com/topic/112109-comments-on-page/#findComment-577525
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.