Littlened
12 Jul 2006, 02:57 AM
I may have posted this in the wrong forum, if so, sorry.
At the moment, if I need a page to access a database I build a page with the HTML code it it, and have an include file to include the php code to pull the required data from MYSQL. The HTML file has point in it so the page knows where to put each bit of data.
I've bee reading about XML, and how CMS's are now pulling data from MYSQL, converting it to XML and using the XML to format the page.
Are there any advantages of doing it this way? I know XML is greate because data can be used universally across different systems, but I can't see how this benefit applies here.
Thanks
At the moment, if I need a page to access a database I build a page with the HTML code it it, and have an include file to include the php code to pull the required data from MYSQL. The HTML file has point in it so the page knows where to put each bit of data.
I've bee reading about XML, and how CMS's are now pulling data from MYSQL, converting it to XML and using the XML to format the page.
Are there any advantages of doing it this way? I know XML is greate because data can be used universally across different systems, but I can't see how this benefit applies here.
Thanks