|
|
|
Below are revisions for this snippet.
Class to generate XML from databse table
This is a simple class for generating XML from MySql databse table.
Usage
include("Xml.class.php");//include class file
$mx=new Xml;//create new Xml object
$mx->dbtoXml("localhost","root","","dbname","tblname");//give hostname, user, password, database name and table name
echo $mx->showXml();//showXml returns Xml




