query($sql); if(mysqli_num_rows($result_articles) && $vocedit1 != '' && $vocedit2 != '') {} else { die(); } $value[0]['1'] = $vocedit1; $value[0]['2'] = $vocedit2; $value[0]['progress'] = "0"; $value = json_encode($value); $conn->query("UPDATE `VokabelBox2Content` SET `value` = '$value' WHERE `id` = '$voc' AND `path` = '$userid/lang/$list/'"); print("true"); ?>