comment without reloading

Simple FB-like Comment using PHP, MySQLi, AJAX and JQuery

Submitted by nurhodelta_17 on
In this tutorial, I'm gonna show you how to create a simple fb-like comment using PHP, MySQLi, AJAX and JQuery. This tutorial will show you how to comment on one post which I've prepared as a sample. This does not a include a good design but will give you idea on the topic.

Creating our Database

First, we're going to create our database. This will store our post and comment data. 1. Open phpMyAdmin. 2. Click databases, create a database and name it as "fb_db". 3. After creating a database, click the SQL and paste the below codes.