Today we have made Youtube style rating framework which is likewise called thumbs up/down rating. It is 99% indistinguishable to unique youtube rating framework. I have tried my best to give you a jazzy and same youtube look rating framework. I have execute Ip address checks for the purpose that a solitary client can rate once. It looks extremely wonderful please attempt it and give your food backs.
Database Structure
CREATE TABLE IF NOT EXISTS `youtube_ip` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userip` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
)
CREATE TABLE IF NOT EXISTS `youtube_rating` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`liked` int(11) NOT NULL,
`dislike` int(11) NOT NULL,
PRIMARY KEY (`id`)
)
INSERT INTO `youtube_rating` (`id`, `liked`, `dislike`) VALUES
(1, 0, 0);