Google Answers Logo
View Question
 
Q: PHP XML Parser ( No Answer,   0 Comments )
Question  
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)
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy