"; // echo date("Y/m/d", $last_date); // echo date("Y/m/d",strtotime($last_date)); if(date("Y/m/d",strtotime($last_date)) == date("Y/m/d")){ $sql_count = "Update ".$sql_t."_counter Set today_number = today_number + 1 Where id = 1"; $rows_count = mysql_query($sql_count ); }else{ $tmp_date = date("Y/m/d H:m:s"); $sql_count = "Update ".$sql_t."_counter Set last_date = '$tmp_date', before_yesterday = yesterday_number, yesterday_number = today_number, today_number = 1 Where id = 1"; $rows_count = mysql_query($sql_count ); } } ?> 智學王數位文創有限公司