Vote on comments

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
defroster
Forum Commoner
Posts: 49
Joined: Wed Mar 24, 2010 12:05 pm

Vote on comments

Post by defroster »

Hello,

I have built a blog in php but. On each article in the blog people are able to comment.

I would now like to build a system where people can vote on the comment up/down with Ajax.

In my comments database I have a table that looks like this:

id / article_id / user_id / dateposted / comment / voteup / votedown

I would like it to look like this:
Image

Any ideas how I can do this? Tutorials online?

Thanks a million
Post Reply