<?php
// start db connection
require_once(‘db.php’); // left to the reader to do
// must include your mysql db link
require_once(‘SqlXML.php’); // full code to this program below
$sql = “SELECT * FROM customers LIMIT 10″;
$sqlxml =& new SqlXML();
$xml = $sqlxml->query($sql);
echo ‘<textarea cols="80" rows="40">’ . $xml . ‘</textarea>’;
// then take that $xml string and transform with the appropriate XSL
?>
|