$q_result = $result->NAcount($editorID, $newsdays, $sectionid); $countnews = $q_result; echo 'Newsanzahl der letzten ' . $newsdays . ' Tage: ' . $countnews . '<br>'; // Durchschnittliche Wortanzahl if (isset($_POST['countwords'])) { $q_result = $result->averageWords($editorID, $newsdays, $sectionid); $averageNewsWords = $q_result; echo 'Ø Worte pro News: ' . $averageNewsWords . '<br>'; } if (isset($_POST['newstrend'])) { // Monatsanzahl erhoehen bis zur Anzahl des Users for ($history = 1; $history <= $newstrendmonth; $history++) { // Den Monat der Zeitspanne holen $timespace = $result->gettrendmonth($history); // Anzahl holen $q_result = $result->trendcount($editorID, $sectionid, $history); // Falls keine Ergebnisse vorliegen, 0 zurueckgeben $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 . " News - Ø " . $trendWords . "Worte<br>"; } } } if (isset($_POST['countarticle'])) { $sectionid = "6,10,11,12"; $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);