I have to write the values of the XML elements to the MySQL database. For example, let's say, I have this XML document:
<users>
<user>
<name>John</name>
<nick>nick1</nick>
</user>
<user>
<name>Jack</name>
<nick>nick2</nick>
</user>
<user>
<name>Mike</name>
<nick>nick3</nick>
</user>
</users>
And I have to write the values to the members table in MySQL database. So, the members table must be like this:
+------+----------+
| name | nick |
+----+------------+
| John | nick1 |
+------+----------+
| Jack | nick2 |
+------+----------+
| Mike | nick3 |
+------+----------+
And I want to do this process in PHP. If you have any idea, please comment.