View Full Version : MySql database table has a field with XML data

12-16-2011, 02:53 AM
Hello all,

I have created my site using WordPress and used FormBuilder as a plug-in to create forms.

I have a MySQL database which contains several tables. One of the tables has 3 fields, one of which is called "xmldata" which holds information entered in the Formbuilder's form.

I would like to be able to retrieve the "xmldata" in a legible way and not "bundled up". Is there a query that can be used to "unbundle" the information in the field?

Thanking you in advance!!


Old Pedant
12-16-2011, 03:33 AM
Where do you want to do the unbundling? In PHP code or in JS code in the browser?

What will you try to do with the unbundled info? Do all the records use the same XML layout?

12-16-2011, 03:15 PM
Thank you Old Pedant for your answer...

In want to unbundle in a stating page as a listing. I would like to do it in PHP, and yes, they all use the same XML layout!

12-16-2011, 05:24 PM
right so you'd just retrieve the info as is from mysql and explode the data as necessary with PHP. If you have problems understanding how to do that post the XML data in a thread in the PHP forum as you are likely to get more help with experienced PHP coders in that forum.

12-16-2011, 06:50 PM
Thanks Guelphdad... I will do that!