1 Attachment(s)
how to fetch data from mysql to xml file using php
Hi there
i have 1 file ( index.php ) and one table in database
the table structure is : ( ID , Name , Phone )
i want to fetch this data to xml file look like that :
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<string>
1|Adam|100001
</string>
<string>
1|Calaman|100001
</string>
<string>
1|Serah|100001
</string>
</ArrayOfString>
i want to php code to select the data and the show it on xml file .
can you please tell me how can i do this ?
Thank you