I want to php script for Like/Dislike button ?

Author Topic: I want to php script for Like/Dislike button ?  (Read 3109 times)

Offline hirephpTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 10
  • Karma: 1
  • Gender: Male
  • Hirephp
    • Hire PHP Developer, Hire PHP Programmer, Hire PHP Web Developer, PHP Framework Solutions
I want to php script for Like/Dislike button ?
« on: 06-06-2012, 06:29:22 »
I want to php script for Like/Dislike button ?
Hire PHP Coder [nofollow] | Hire PHP Developer [nofollow]


Offline automart

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 2
  • Karma: 0
Re: I want to php script for Like/Dislike button ?
« Reply #1 on: 09-19-2014, 01:38:53 »
CREATE TABLE IF NOT EXISTS `wcd_yt_rate` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_item` INT(11) NOT NULL,
  `ip` VARCHAR(25) NOT NULL,
  `rate` INT(1) NOT NULL,
  `dt_rated` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
);
<div class="like-btn">Like</div>
<div class="dislike-btn"></div>

$('.like-btn').click(function(){
    $('.dislike-btn').removeClass('dislike-h');   
    $(this).addClass('like-h');
    $.ajax({
        type:"POST",
        url:"ajax.php",
        data:'act=like&pageID='+pageID,
        success: function(){
        }
    });
});
http://www.autosparemart.com/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2427 Views
Last post 04-11-2011, 23:25:36
by henna
1 Replies
2766 Views
Last post 10-26-2017, 00:28:00
by damponting44
1 Replies
3441 Views
Last post 02-23-2016, 00:47:40
by Shikha Singh
1 Replies
1382 Views
Last post 10-26-2017, 00:20:12
by damponting44
1 Replies
473 Views
Last post 10-04-2017, 02:08:51
by komal