i want to store data from a XML file to the mysql
am using mysql version 5.1.56
the XML file Structure is
<STORY>
<BYFILE>abcd</BYFILE>
<STORYID>1234</STORYID>
</STORY>
how can i save the data ie abcd and 1234 to the database
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to parse the data from xml to php.
You can parse the data to parse check the following link:
Xml to php array
Or you can try this code:
this will parse the data into php.