Forum Moderators: coopster
<projects>
<project id="1">
<title>this is the title for project 1</title>
<description>this is the description</description>
</project>
<project id="2">
<title>this is the title for project 2</title>
<description>this is the description</description>
</project>
</projects>
I want to get the project id from the url (no problem here) then open the xml file and get the information for this project.
I am having problems getting my head around how to do this with PHP (its a long time since I used it) this is with php 4.
I have tried using an xslt to transform the xml which works but i might want the description to contain <p> tags.
So I think that I need to open the xml file get the information and then load it into php variables that I can manipulte before they are displayed.
Any suggestions
Secondly, the best way to do it is using PHP's XML functions found here: [uk2.php.net...]
[edited by: coopster at 3:50 pm (utc) on Jan. 17, 2007]
[edit reason] removed link to non-authoritative site [/edit]
So I have create the template in PHP all I need to do now is hook up the data.