Code for today’s demo

Simple AJAX/PHP/MySql examples can be found here
Also check out this basicĀ Upvote/Downvote & Rating example