Ec (2); PHPandAJAXresponseXML instance tutorial AJAX technology can be used to restore the database information as XML. The following example shows how to convert a database named XML from a MySQL database to an XML file, use it to display information in several different places. In this example, I seem to be like & ldquo; PHP's AJAX technology database & rdquo; for example, in script ec (2); script
PHP and AJAX responseXML instance tutorial
The database information That AJAX technology can use to restore is XML.
Example of an AJAX database using XML
In the following example of AJAX, we will demonstrate how to sell information on a webpage from a MySQL database, convert it into an XML document, and use it to display information in several different places.
This example seems like "php ajax technology database". For example, in the last chapter, there is a big difference: in this example, the data we obtained uses the responseXML function from the XML web page of PHP.
The received response, as an XML file, enables us to update this webpage in several places, instead of simply accepting a PHP output and displaying it.
In this example, we will update some content and the information we receive from the database.
| Id |
FirstName |
LastName |
Age |
Hometown |
Job |
| 1 |
Peter |
Griffin in |
41 |
Quahog |
Brewery |
| 2 |
Lois |
Griffin in |
40 |
Newport |
Piano Teacher |
| 3 |
Joseph |
Swanson |
39 |
Quahog |
Police Officer |
| 4 |
Glenn |
Quagmire |
41 |
Quahog |
Pilot |