Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MySQL mit PHP auslesen und in XML wandeln?

Empfohlene Antworten

Hallo zusammen.

Hab absolut keine Ahnung von PHP.

Kann mir evtl. jemand den Code geben, wie ich eine MySQL Datenbank mittels PHP auslese, und dann in ein XML wandle?

Funktioniert das Umwandeln dann über XSLT?

Das funktioniert wie in jeder anderen Sprache auch:

- Verbindung zum MySQL-Server aufbauen

- SQL-Query schicken

- Ergebnis nehmen

- eine XML-Struktur erzeugen

Links hierzu:

- Doku der MySQL-Funktionen in PHP

- Doku der XML-Funktionen in PHP

------------------

Achja, wenn man sich mal so deine anderen Threads anschaut hast du offenbar arge Probleme mit irgendwas. Wie wäre es wenn du mal das komplette Problem postest, statt immer nur (ungenaue) Teilfragen zu stellen?

Ahja, und du solltest dir mal anschauen was XSLT ist. Das dient nämlich nicht zum umwandeln von irgendwas in XML, sondern umgekehrt zum umwandels von XML in irgendwas.

Kann mir evtl. jemand den Code geben, wie ich eine MySQL Datenbank mittels PHP auslese, und dann in ein XML wandle?

Ohne sowohl die Quelldatenbank als auch das gewünschte Zielformat zu kennnen: Nein.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.