I want to add a user score like they have on hacker news where the value of the comments on someones news submission and someones comments are added up and a score appears beside their username
so i have 3 tables
users/stories/comments
what would be the best way to do this in php/mysql?
i was thinking... 2 queries one to get all the comments and one for the submissions then loop through each to add to a variable of scores?
}