include "Up.php";
include "backend/Mis.php";
?>
$sql ="select * from sd_rule where RuleID=".Trim($_GET['RuleID'])."";
$result = mysql_query($sql);
if ($result)
{
$RS=mysql_fetch_assoc($result);
$Title=$RS['Title'];
$RuleNumber=$RS['RuleNum'];
$Content =$RS['Content'];
$Content= str_replace("\n", "
", $Content);
$AddDate=$RS['AddDate'];
$Click=$RS['Click'];
$SQl = "update sd_Rule set Click=Click+1 where RuleID=".Trim($_GET['RuleID'])."";
//echo $SQl;
$result = mysql_query($SQl);
mysql_free_result($result);
}
?>
|
業力法則主頁 | 版主的話 |
$DateTime_Now=date("Y-m-d");
if ((trim($AddDate))!="0000-00-00 00:00:00")
{
$news_date = strtotime($AddDate); //必需先把字串型態的日期變數轉換為日期型的變數
$news_date_Y = date("Y" , $news_date); //取得新聞時間的年
$news_date_m = date("m" , $news_date); //月
$news_date_d = date("d" , $news_date); //日
$DateTime_7Day =date("Y-m-d" , mktime( 0, 0, 0, $news_date_m, $news_date_d + 7, $news_date_Y ) );
if ($DateTime_7Day >= $DateTime_Now)
{
echo "";
}
}
?>
編號:()
標題
|
|
include "Down.php";
?>