当从数据库加载的内容很多时,我没有得到输出,甚至不是这个
[]
It is just empty.
如果没有内容,我会按预期获得这些括号:
[]
以下是代码
<?PHP
//Verbindung zur Datenbank
include "inc_mysqli.php";
//SQL-String
$sql = "SELECT * FROM term WHERE id_module ='".mysqli_real_escape_string($db, $_GET['id_module'])."'ORDER BY name ASC";
// Codierung
mysqli_set_charset("utf8");
//SQL-Befehl
$result = mysqli_query($db, $sql);
//Array erstellen
$jsonArray = array();
while($row = mysqli_fetch_assoc($result)) {
$jsonArray[] = $row;
}
//JSON Kodierung
echo json_encode($jsonArray, JSON_UNESCAPED_UNICODE);
?>
我需要添加什么?