The simplest things are the hardest for me. Im just getting into XML action using PHP 4.4.1 I found a lack of simple examples and posts on the web, others too advanced.
I want to:
open/read an xml document, <- this has been impossible so far
count the childs <gall> that are there,
choose a random one,
get the information <bla>this bit here</bla> from each child,
put it in a few $variables.
The XML looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<db01>
<gall>
<order>43</order>
<code>40a22468c7dc1</code>
<title>untitled</title>
<author>David Hayward</author>
<series>Dead Cars</series>
<smalls>40c4e9cbc62c5.jpg</smalls>
<larges>40c4e9cc1adbf.jpg</larges>
<email>
[email protected]</email>
</gall>
<gall>
<order>10</order>
<code>409e72d45e88d</code> ...
</gall>
</db01>
Thanks in advance.
1MANJAPAN