Add Comment

Form Inside While Loop [fixed], Simple Dynamic Posting and Comment using AJAX/Jquery

Submitted by nurhodelta_17 on
I have created another tutorial on how to create a dynamic posting and comment using AJAX/JQuery. In this tutorial, you will learn how to create a form inside a while loop in PHP. This tutorial will not give you a good desing but will give you idea on creating a simple posting and commenting.

Creating our Database

First and most important step is for us to create our database. This will serve as our storage for our 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 code.

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.