error_reporting(0);
$u="kx";
$pas="kx";
$h="localhost";
$db="kxfo";
$con=mysql_connect ($h, $u, $pas);
mysql_select_db ($db);
?>
���� ����
|
���� � �������� ����� ��� ������� |
�� |
�������� |
���� |
�������� |
$r= mysql_db_query ($db, "select * from fo ORDER BY `date` DESC");
$n=time();
//$nd= $n - 2592000; //tova se ravniava na 1mesez
//$nd= $n - 1944000; //tova se ravniava na 3sedmizi
//$nd= $n - 1296000; //tova se ravniava na 2sedmizi
$nd= $n - 648000; //tova se ravniava na 1sedmiza
$dn = date("Y-m-d ", $n);
$db = date("Y-m-d ", $nd);
while ($z = mysql_fetch_row ($r)){
$sdf= $z[4];
if ($sdf > $db){
?>
|
|
|
$i=$z[0];
$t = mysql_query("select sum(br) from post where fo_id = '$i'");
$a = mysql_result ($t, 0);
?>
if($a < 1){print ("0");} print($a);?> �� |
|
|
|
|
}
}
?>