Have you expressed your opinions when browsing the news every day?
Have you ever posted your own comments when you saw your friends’ sentiments posted in QQ space?
In this article, I will take you through using PHP, MySQL and jQuery to create a fast and efficient comment function. You can use this function in blog comments, product reviews, etc.
This tutorial uses the JQ plug-in and quotes the cdn from the Internet. Put the following code between the <head></head> tags and quote it without downloading
This article is a comprehensive knowledge application article, which requires you to have basic knowledge of PHP, jQuery, MySQL, html and css.
Create the PHP file we need
File name | index.html | comment.php | server.php |
| Read and generate JSON data, cooperate with the front-end ajax, and return the data to the front-end page |