Location: PHPKode > scripts > SQL XML > sql-xml/ex_query.php
<?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&#8243;;
 
$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

?>
Return current item: SQL XML