Create Like & Unlike System in PHP MySQL and jQuery [Improved]

21

We have created a like and unlike script on our readers request we received many users feedback they face problems in counter etc. Now I have fixed all bugs and created its improved version with multiple like unlike on single page and for products and improve some JavaScript and CSS so I hope you like it.

Database Details:
database name => phpgang
table name => products
table name => like
db.sql
Database file run in your MySQL to create database and add data in table.

db.php
Edit this file as per your database credentials.

index.php

Contains PHP code to update table records and show the current number in the file, in this file we used cookie to skip invalid likes and un-likes.

Main file show products list and and like buttons:

To post like button action below code used:

Complete Demo code available in download area click download to download code a running demo here