MySQL Table structure of thumb UP & DOWN for comments system ?
Posted
by Axel
on Stack Overflow
See other posts from Stack Overflow
or by Axel
Published on 2010-04-01T20:30:28Z
Indexed on
2010/04/01
20:33 UTC
Read the original article
Hit count: 268
Hello, i already created a table for comments but i want to add the feature of thumb Up and Down for comments like Digg and Youtube, i use php & mysql and i'm wondering What's the best table scheme to implement that so comments with many likes will be on the top.
This is my current comments table : comments(id,user,article,comment,stamp)
Note: Only registred will be able to vote, so there isn't need to restrict the votes by IP
Thanks
© Stack Overflow or respective owner