Changed stupid print_r to json
in getDatabases and getTables
This commit is contained in:
parent
e59a654834
commit
c2623224cd
8
c.php
8
c.php
@ -112,15 +112,15 @@
|
|||||||
case "dblist":
|
case "dblist":
|
||||||
$con->connect();
|
$con->connect();
|
||||||
$list = $con->dbList();
|
$list = $con->dbList();
|
||||||
print_r($list);
|
echo json_encode($list);
|
||||||
break;
|
break;
|
||||||
case "tablelist":
|
case "tablelist":
|
||||||
$con->connect();
|
$con->connect();
|
||||||
print_r($con->tableList($database));
|
echo json_encode($con->tableList($database));
|
||||||
break;
|
break;
|
||||||
case "dblist":
|
case "dblist":
|
||||||
$con->connect();
|
$con->connect();
|
||||||
print_r($con->dbList());
|
echo json_encode($con->dbList());
|
||||||
break;
|
break;
|
||||||
case "query":
|
case "query":
|
||||||
$con->connect();
|
$con->connect();
|
||||||
@ -135,4 +135,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$con->disconnect();
|
$con->disconnect();
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user