CRUD operation with ajax functions
Hear we show a basic CRUD operation with database with ajax function. Points : Connection with database HTML form page Ajax function JavaScript Insert data Update data Delete data View data First create one PHP file call connect.php in this file contain a connection of database and this file call in other file for connecting with database. <?php $con=mysqli_connect("server name","username","password","databasename") or die(''.mysql_error()); ?> Now we create second file that include HTML of form and javascript. Create file name index.php <html> <head> <meta charset="UTF-8"> <title>test form</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> </hea...