Login   Register  
PHP Classes
elePHPant
Icontem

File: testxml.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Johan De Klerk  >  jMySQLXML  >  testxml.php  >  Download  
File: testxml.php
Role: Example script
Content type: text/plain
Description: an example
Class: jMySQLXML
MySQL Select to XML - XML to MySQL
Author: By
Last change: new example file to accomodate changes in version 1.2
Date: 2004-02-03 05:05
Size: 350 bytes
 

Contents

Class file image Download
<?php
require_once('jMySQLXML.php');

$mx = new jMySQLXML('localhost','dbname','dbusername','dbpassword');

$query 'select * from yourtable';
$xml $mx->jBuildXMLString($query);

printf('%s',$xml);

$mx->jWriteXML('testxml.xml');

$mx->jReadXML('testxml.xml');
//or you can read the string:
//$mx->jReadXML($xml);

$mx->jInsertXML('yourtable');
?>