query($sql); if(mysqli_num_rows($result_articles)) { die(); } // Pfad wird gesetzt $path = "$userid/" . $lang . "/"; $sql = "SELECT `id` FROM `VokabelBox2Content` WHERE `path` LIKE '$userid/%' AND `type` = 'list'"; $result_articles = $conn->query($sql); $statLIST = mysqli_num_rows($result_articles); if($statLIST > '500') { die(); } //Neue Liste wird in die Datenbank geladen $conn->query("INSERT INTO `VokabelBox2Content`(`id`, `path`, `value`, `type`) VALUES ('$id','$path','$listname','list')"); // JS darf fortfahren echo "true"; ?>