1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php include("../manage/category/pointcommon.php");
if($mode=='year1_ck'){ $sql = "select * from cust_cash where id = '{$id}' "; $res = mysql_query($sql); $cinfo = mysql_fetch_array($res); $now_date = date("Y-m-d",time()); if($cinfo['expire_date']>$now_date){ $v = strtotime($cinfo['expire_date']); echo date("Y-m-d",strtotime("+1 year",$v)); } else { $v = time(); echo date("Y-m-d",strtotime("+1 year",$v)); } }
?>
|