Gibt es jemanden wissen, wie kann ich jede Zeile eines mysql Select in jede XML-Datei exportieren?mysql zu xml mit php
Ich habe einige PHP-Skripte versucht, aber insgesamt wurde nur eine Datei erstellt.
Der Tabelleninhalt ist:
+----+----------------+---------------------------------------+-----------+
| id | colum1 | colum2 | colum3 |
+----+----------------+---------------------------------------+-----------+
| 1 | 2147483647 | [email protected] | Ident1 |
| 2 | 2147483648 | [email protected] | Ident2 |
| 3 | 2147483649 | [email protected] | Ident3 |
| 4 | 2147483650 | [email protected] | Ident4 |
| 5 | 2147483651 | [email protected] | Ident5 |
+----+----------------+---------------------------------------+-----------+
Wunsch Ausgabe lautet:
2147483647.xml
<account>
<colum1>2147483647</colum1>
<colum2>[email protected]</colum2>
<colum3>Ident1</colum3>
</account>
2147483648.xml
<account>
<colum1>2147483648</colum1>
<colum2>[email protected]</colum2>
<colum3>Ident2</colum3>
</account>
2147483649.xml
<account>
<colum1>2147483649</colum1>
<colum2>[email protected]</colum2>
<colum3>Ident3</colum3>
</account>
2147483650.xml
<account>
<colum1>2147483650</colum1>
<colum2>[email protected]</colum2>
<colum3>Ident4</colum3>
</account>
2147483651.xml
<account>
<colum1>2147483651</colum1>
<colum2>[email protected]</colum2>
<colum3>Ident5</colum3>
</account>
' "Ich habe einige PHP-Skripte versucht"' - Wir können dabei helfen, aber wenn man nicht wirklich teilen Sie den relevanten Code. – David
Ich stimme für das Schließen dieser Frage als Off-Topic, weil es in seiner aktuellen Form eine Art "Bitte schreibe meinen Code" -Typ der Frage ist. – michi