Changed stupid print_r to json

in getDatabases and getTables
This commit is contained in:
Przemek Grondek 2014-07-17 11:47:06 +02:00
parent e59a654834
commit c2623224cd

6
c.php
View File

@ -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();