|
|
Subject:
PHP XML Parser
Category: Computers > Programming Asked by: inquiringmind123-ga List Price: $5.00 |
Posted:
05 Jan 2006 12:08 PST
Expires: 05 Jan 2006 13:40 PST Question ID: 429562 |
I have a XML file listed below. I want to call a php with a url variable such as (request.php?id=1,show,true using xmlhttprequest). I should be able to do this myself but I am having trouble. I have the xmlhttprequest done but I need the page to display only one record in XML. Can someone help me finish the request.php file. It should be easy for an experienced developer. When finished the php file should return the record by the id # when submitted as request.php?id=2. The output should be in xml not text. It should work just like this page http://209.123.133.210/ad.php?ad=1999 [xml.xml] <?xml version="1.0" ?> <addresses> <address> <id>1</id> <name>John Doe 1</name> <address>1 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>2</id> <name>John Doe 2</name> <address>2 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>3</id> <name>John Doe 3</name> <address>3 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>4</id> <name>John Doe 4</name> <address>4 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>5</id> <name>John Doe 5</name> <address>5 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>6</id> <name>John Doe 6</name> <address>6 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>7</id> <name>John Doe 7</name> <address>7 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>8</id> <name>John Doe 8</name> <address>8 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> <address> <id>9</id> <name>John Doe 9</name> <address>9 main street</address> <city>new york</city> <state>new york</state> <zipcode>00000</zipcode> </address> </addresses> [file request.php] (to be completed) |
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |