PHPandAJAXresponseXML example tutorial-PHP source code

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.