include_once 'config.inc.php';
$link = mysqli_connect(
QConfig::get('db_default_host'),
QConfig::get('db_default_user'),
QConfig::get('db_default_password'),
QConfig::get('db_default_database')
) OR die(mysqli_error());
$sql = "SHOW TABLES";
$dataObject = QDataObject::getInstance("mysqli", $link, $sql)->getAllTables();
header("Content-type: text/xml");
echo "<?xml version='1.0' encoding='utf-8'?>";
echo $dataObject->buildScheme(true)->doRender();
|