HOW TO ADD RECORDS IN A MYSQL DATABASE WITH PHP AND JQUERY

[Total: 1    Average: 5/5]

this post describes how to update the information in a database located on the server through a webpage using jquery. With jquery the information can be provided to the server without to reload the entire webpage, part of the page is also after uploaded using javascript. 

First of all the html form has to be defined to add the record.

The same html page will contain a javascript code with jquery. This code is important to submit to the server the information provided in the form.

The php file will be located on the server. This file will take the request from the client and update the information in the database

file.html

 

 

 

Enter Information

 

 

Client has been added.

 

 
ajax.php
 
jquery_update_mysql.js