Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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.

How to output data as xml

Featured Replies

Hi there,

 

Phew it's been a while since I posted and I must say the new look of the site is great!

 

Anyway I have had a request to output data as xml and am unsure as to how to go about it.

 

I have values taken from a form that are sent to a php page. Then an SQL query searches a database using the form input as the SQL query parameters. From here I need to provide the results as XML.

 

Can anyone help please

 

Thanks

Hi there,

 

Phew it's been a while since I posted and I must say the new look of the site is great!

 

Anyway I have had a request to output data as xml and am unsure as to how to go about it.

 

I have values taken from a form that are sent to a php page. Then an SQL query searches a database using the form input as the SQL query parameters. From here I need to provide the results as XML.

 

Can anyone help please

 

Thanks

 

Why not just output the XML using echo?

  • Author

Thanks but I think the guy want me to write to an xml file (I think thats what he needs) he just said he needs the results of an sql query out put as xml data

look at the php functions: fopen, frwite, fclose

From experience its easier to do with PHP

Create an account or sign in to comment

Account

Navigation

Search

Search

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.