View file MiniCMS/minicms/h&h.php

File size: 753B
<?
// Выводим настройки БД
include 'config.php'; 
###########################################
// Выводим кол-во Хитов
$query = "SELECT count(*) FROM ip WHERE 1 ;";
if (!$query) echo mysql_error();
$result = mysql_query($query);
if (!$result) echo mysql_error();
$ra = mysql_fetch_array($result);
if (!$ra) echo mysql_error();
$answer = $ra ['count(*)'];
echo '<small>'.rus('Хитов').': '.$answer.'</small><br/>';
// Выводим кол-во Хостов
$query = "SELECT count(*) FROM host WHERE 1 ;";
if (!$query) echo mysql_error();
$result = mysql_query($query);
if (!$result) echo mysql_error();
$ra = mysql_fetch_array($result);
if (!$ra) echo mysql_error();
$answer = $ra ['count(*)'];
echo '<small>'.rus('Хостов').': '.$answer.'</small>';
?>