1){ $month=$month; }else{ $month="0".$month; } if(strlen($day)>1){ $day=$day; }else{ $day="0".$day; } $s_date=$year.$month.$day; Clear_IP($s_date); function Clear_IP($s_date){ $str_c="delete from ip where p_day<>$s_date"; $result=mysql_query($str_c); } check_ip(); function check_ip() { } $str_p="select * from ip where p_ip='$ip' and p_dns='www.ieenet.com.tw'"; $result_p=mysql_query($str_p, $link_db); $record_p=mysql_fetch_row($result_p); if(empty($record_p)){ wr_ip($ip,$s_date); wr_count($s_date); }else{ } function wr_ip($ip,$s_date){ $str_w="insert into ip (p_ip,p_day,p_dns) values ('$ip',$s_date,'www.ieenet.com.tw')"; $w_cmd=mysql_query($str_w); } function wr_count($s_date){ $str="select * from addcount where day=$s_date and dns='www.ieenet.com.tw'"; $result=mysql_query($str); $record=mysql_fetch_row($result); if(empty($record)): $add_data="insert into addcount (ip,day,dns,click_count) values ('',$s_date,'www.ieenet.com.tw',1)"; $add_cmd=mysql_query($add_data); $click=1; else: $up_data="update addcount set click_count=click_count+1 where day=$s_date and dns='www.ieenet.com.tw'"; $up_cmd=mysql_query($up_data); endif; } function total_all(){ //$str="select sum(click_count) as t_count from addcount where dns='www.ieenet.com.tw' group by click_count"; $str="select sum(click_count) as t_count from addcount where dns='www.ieenet.com.tw' order by id"; $result=mysql_query($str); $data=mysql_fetch_array($result); echo $data[t_count]; } ?> IEE
提供並解決人才選、用、育、留、團隊建構的
全方位服務!
圓一個國外遊學、打工渡假的夢!