false, "message" => translate("error", $i18n) ])); } $stmt = $db->prepare('UPDATE settings SET disabled_to_bottom = :disabled_to_bottom WHERE user_id = :userId'); $stmt->bindParam(':disabled_to_bottom', $disabled_to_bottom, SQLITE3_INTEGER); $stmt->bindParam(':userId', $userId, SQLITE3_INTEGER); if ($stmt->execute()) { die(json_encode([ "success" => true, "message" => translate("success", $i18n) ])); } else { die(json_encode([ "success" => false, "message" => translate("error", $i18n) ])); }