Просмотр файла games/count.php

Размер файла: 404B
<?
define('SECURED', true);
include 'ini.php';
	$ntime = time() - (3600*24*1);
		{
		$total_files = mysql_result(mysql_query("SELECT COUNT(*) FROM `games` WHERE `cat_id`;"),0);
		$new_files = mysql_result(mysql_query("SELECT COUNT(*) FROM `games` WHERE `added` > '$ntime';"),0);
		if($new_files>0) $total_files.="<span style=\"color: #ff0000;\">+$new_files</span>";
print ''.$total_files.'';}
?>