看板 [ PHP ]
討論串[請益] 請教一個日期條件設計問題
共 10 篇文章

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者gpmm (銀色)時間7年前 (2018/01/23 07:51), 7年前編輯資訊
0
0
0
內容預覽:
其實看沒有很懂到底想做什麼 XDD. # 按原題,生日為 1911-01-03,. $birthday = '1911-01-03';. $birthdayTime = strtotime ($birthday);. 如果把生日年假定為統一計算的年度,那麼. $startDate = date ("
(還有364個字)

推噓0(0推 0噓 9→)留言9則,0人參與, 7年前最新作者lusaka (gary.lusifa)時間7年前 (2018/01/22 18:31), 編輯資訊
0
0
0
內容預覽:
kyoe大大您好. 感謝您提供您提供思路,但是顯示的結果如下:. $start_date = 1970-01-01. $end_date = 1970-01-01. --. 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.255.79.52. 文章網址: https://www.p

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者kyoe時間7年前 (2018/01/22 12:40), 編輯資訊
0
0
0
內容預覽:
<?. $birthday="1911-05-03";. $birthday=date("Y")."-".date("m",strtotime($birthday))."-".date("d",strtotime($birthday));$start_date = date("Y-m-d", str
(還有160個字)

推噓0(0推 0噓 3→)留言3則,0人參與, 7年前最新作者lusaka (gary.lusifa)時間7年前 (2018/01/22 09:52), 7年前編輯資訊
0
0
0
內容預覽:
不好意思,昨天打的時候,關於$birthday有錯誤,生日應該是1911/01/03,. 後來建議的修改後程式碼. <? $birthday=1911-01-03;. $start_date=date("m-01",strtotime("-1 month","$birthday"));. $d1=t
(還有395個字)

推噓4(4推 0噓 5→)留言9則,0人參與, 7年前最新作者lusaka (gary.lusifa)時間7年前 (2018/01/22 01:43), 編輯資訊
0
0
0
內容預覽:
各位先進好. 最近有在學習PHP+mysql網頁設計,因為要設計一個會員網站,在會員資料內有生日欄位,我想要設計一個提醒訊息如:會員生日是1911年1月/3日,當會員在2017/12/1~2018/01/31登入網站的時候,會顯示一個連結告訴會員最近您有生日優惠。. 我遇到的問題是我已經抓到生日欄位
(還有247個字)