Delete Record Using JQuery and PHP with Animation
Hello Friends !!
Today I will Give you code to delete records using JQuery and PHP with Animation effect.
It is very simple to understand. First you have to download jquery.js which is availble HERE.
After that copy this code in your PHP file and run it.
Continue reading »
Example of AJAX and PHP
Hello Friends !
Here I explain one Example how AJAX used in PHP ?
First create a database displayed below:
| id | FirstName | LastName | Age | Hometown | Job |
|---|---|---|---|---|---|
| 1 | Peter | Griffin | 41 | Quahog | Brewery |
| 2 | Lois | Griffin | 40 | Newport | Piano Teacher |
| 3 | Joseph | Swanson | 39 | Quahog | Police Officer |
| 4 | Glenn | Quagmire | 41 | Quahog | Pilot |
Then You have to create HTML form:
<html> <head> <script src="selectuser.js"></script> </head> <body>
<form> Select a User: <select name="users" onchange="showUser(this.value)"> <option value="1">Peter Griffin</option> <option value="2">Lois Griffin</option> <option value="3">Glenn Quagmire</option> <option value="4">Joseph Swanson</option> </select> </form>
<p> <div id="txtHint"><b>User info will be listed here.</b></div> </p>
</body> </html>
Do You Know What is AJAX ?
AJAX : Asynchronous Java And XML
Ajax is a set of programming techniques or a particular approach to Web programming. These programming techniques involve being able to seamlessly update a Web page or a section of a Web application with input from the server, but without the need for an immediate page refresh. This doesn’t mean that the browser doesn’t make a connection to the Web server.
Ajax doesn’t have to use XML, and neither does it have to be asynchronous. Ajax applications can use XML, and they can be updated asynchronously. These are quite common tricks and techniques used to update the page, but they are not tied to these technologies.
Here are the technologies he specifically mentioned:
- XHTML and CSS
- The Document Object Model (DOM)
- JavaScript
- XML and XSLT
- The
XMLHttpRequestobject
In reality, to create an application using Ajax techniques you need only three of these: XHTML, the DOM, and JavaScript. If you do any amount of development with Ajax techniques, though, you will almost certainly need to use all of the technologies at some point.
You’ll also probably need a server-side language to handle any interaction with the server. This is most typically one of the following three:
- PHP
- ASP.NET (Visual Basic.Net/C#)
- Java
This is the Overview of AJAX.
In my Next Post I will write that how to use AJAX in PHP ?
Don’t Forget to leave comment.
Thanks…….




