Location: PHPKode > scripts > WH Social > wh_social/modules/show.inc.php
<?php

    $time = time();
	$reload = $time - $reload;
	$query = "SELECT * FROM counter WHERE time > '" . $reload . "'";
	$result = mysql_query($query) OR die(mysql_error());
	$online = mysql_num_rows($result);

	   echo '<p><strong>' . intval($online) . '</strong> ' . $lang['counter_online'] . '</p>';

    mysql_free_result($result);

	$query = "SELECT * FROM counter";
	$result = mysql_query($query) OR die(mysql_error());
	$today = mysql_num_rows($result);

	   echo '<p><strong>' . intval($today) . '</strong> ' . $lang['counter_today'] . '</p>';

    mysql_free_result($result);

	$query = "SELECT * FROM counter ORDER BY id DESC";
	$result = mysql_query($query) OR die(mysql_error());
	$row = mysql_fetch_assoc($result);
	$total = (int)$row['id'];

	   echo '<p><strong>' . intval($total) . '</strong> ' . $lang['counter_total'] . '</p>';

    mysql_free_result($result);

?>
Return current item: WH Social