diff --git a/c.php b/c.php index 0cab372..2230384 100644 --- a/c.php +++ b/c.php @@ -112,15 +112,15 @@ case "dblist": $con->connect(); $list = $con->dbList(); - print_r($list); + echo json_encode($list); break; case "tablelist": $con->connect(); - print_r($con->tableList($database)); + echo json_encode($con->tableList($database)); break; case "dblist": $con->connect(); - print_r($con->dbList()); + echo json_encode($con->dbList()); break; case "query": $con->connect(); @@ -135,4 +135,4 @@ } $con->disconnect(); -?> \ No newline at end of file +?>