//require('common.inc');
$arr_request=array();
if (count($HTTP_GET_VARS))
{
while (list($key,$value)=each $arr_request[strtolower($key) ]=$值;
}
}
if (count($HTTP_POST_VARS)) {
🎜 > {
$arr_request[strtolower($key)]=$value;
}
}
$link=@mysql_connect("localhost","kong","kong");
mysql_select_db("mywebdb");
$ip=$REMOTE_ADDR;
$current=getdate(time());
$day=$current["mday"];
$query="select * from addcount where day="$day"";
$結果=@mysql_query($query);
if(!$num=@mysql_num_rows($result))
$num=1;
while($row=@mysql_fetch_row($result))
{
if (strcmp($ip,$row[1])==0) ;
$id=$row[0];
$click=$row[3]+1;
$up="更新 addcount 設定 click_count=click_count+1 其中 id=$id";
$result2=@mysql_query($up);
// 休息;
}
$total+=$row[3];
}
$總計++;
if(!$i){
$query1="插入 addcount (ip,day,click_count )values ('$ip','$day', 1)」;
mysql_db_query("mywebdb",$query1,$link);
$click=1;
}
echo "