query($sql); if(mysqli_num_rows($result_articles)) { die(); } // Eingabe wird im JSON-Format gespeichert $value[0]['1'] = $vokinputtmpleft; $value[0]['2'] = $vokinputtmpright; $value[0]['progress'] = "0"; $value = json_encode($value); $path = "$userid/lang/$list/"; // Anzahl im Nutzerkonto gespeicherter Vokabeln wird geholt $sql = "SELECT `id` FROM `VokabelBox2Content` WHERE `path` LIKE '$userid/%' AND `type` = 'voc'"; $result_articles = $conn->query($sql); $statVOC = mysqli_num_rows($result_articles); if($statVOC > '1000') { die(); } $conn->query("INSERT INTO `VokabelBox2Content`(`id`, `path`, `value`, `type`) VALUES ('$id','$path','$value','voc')"); print("true"); ?>