$result = mysqli_query($db, "SELECT SUM(hosts) AS `value_sum` FROM `dnik_stats_visits`");
$rowAll = mysqli_fetch_assoc($result);
echo 'Всего: ' . $rowAll['value_sum'];
mysqli_query($db, "SELECT SUM(hosts) AS `value_sum` FROM `dnik_stats_visits`");
$res = mysqli_query($db, "SELECT `views`, `hosts` FROM `stats_visits` WHERE `date`='$date'");
// Add Stylesheets
JHtml::_('stylesheet', 'jquery.dataTables.min.css', array('version' => 'auto', 'relative' => true));
// Check for a custom js file
JHtml::_('script', 'jquery-3.5.1.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'jquery.dataTables.min.js', array('version' => 'auto', 'relative' => true));