<?php
//This is a generic "get data as a list" page that returns a list snippet.
//Useful for XmlHttpRequests.
include('../common_db.php');
include('../functions.php');
dbconnect($host, $username, $password);
header("Content-Type: application/xml");
echo('<');?>?xml version="1.0" encoding="UTF-8"?>
<select xmlns="http://www.w3.org/1999/xhtml" name="tables[]" rows="10" multiple="multiple">
<?php
echo(listTables('<option value="%1$s">%1$s</option>',$_REQUEST['db']));
?>
</select>