與訂閱成員的截止日期一樣。將30天添加到sql中的變量,然後在php中回顯
聽起來很簡單,但我得到的只是1969年1月31日!
例如。
<? $expire = strtotime("+30 days",$subscribed); echo $expire;?>
SQL條目已經使用Y-M-D格式,並且在剛剛作爲變量回顯時工作正常。
但是,當我嘗試添加30天的$訂閱值我得到的是數字的一束穿過.date功能放時31-01-1969
也許一個簡單的解決方案,但出現我是一個noob哈哈。
感謝所有幫助:)
你有一些錯誤,所以只顯示31-01-1969 –
目前,$ subscribed變量中包含什麼? – elimirks