View file waplend/forum/count.php

File size: 507B
<?php 

			$count = mysql_query("select * from `forum` where type='tema';");
	$cnt = mysql_num_rows($count);
		$count = mysql_query("select * from `forum` where type='mess';");
	$cnt1 = mysql_num_rows($count);
	echo "(".$cnt."|".$cnt1.")";
	$count = mysql_query("select * from `forum` where time>'".intval(time()-600)."';");
	$cnt = mysql_num_rows($count);
	if ($cnt>0)
	{
	echo " <span style='text-decoration:blink;color:red;'>Сообщений за 10 минут: ".$cnt."</span>";
	}
	
	?>