$q_result = $result->NAcount($editorID, $articledays, $sectionid);
            $countarticle = $q_result;
            echo '<br>Artikelanzahl der letzten ' . $articledays . ' Tage: ' . $countarticle . '<br>';
            if (isset($_POST['countwords'])) {
                $q_result = $result->averageWords($editorID, $articledays, $sectionid);
                $averageArticlesWords = $q_result;
                echo '&#216;&nbsp;Worte pro Artikel: ' . $averageArticlesWords . '<br>';
            }
            if (isset($_POST['articletrend'])) {
                for ($history = 1; $history <= $articletrendmonth; $history++) {
                    $timespace = $result->gettrendmonth($history);
                    $q_result = $result->trendcount($editorID, $sectionid, $history);
                    $q_result == false ? $trendCount = 0 : ($trendCount = count($q_result));
                    $q_result = $result->trendWords($editorID, $history, $sectionid);
                    $trendWords = $q_result;
                    echo "Im " . strftime('%B', $timespace) . ": " . $trendCount . " Artikel - &#216; " . $trendWords . "Worte<br>";
                }
            }
        }
        echo '</div>';
        echo '<hr >';
        // Timestamp vom Login angeben
        if (isset($_POST['lastlogin'])) {
            $q_result = $result->lastlogin($editorname);
            $lastlogin = $q_result[0]['lastvisitDate'];
            echo '<p>Letzter Login: '******'</p></div>';
        } else {
            echo '<p>&nbsp;</p></div>';
        }
    }
}