1 頁 (共 1 頁)

[問題]關於phpbb的資料庫時間欄位

發表於 : 2003-08-27 21:22
boogieman
請問有沒有人知道在phpbb的資料庫中時間欄位是如何換算成年月日時分的?
例如在topic_time裡 我知有看到"1020204020"這樣的整數顯示\r
請問該如何換算成一般時間呢?

發表於 : 2003-08-27 21:30
JFA
我也想知道

幫你推一下

發表於 : 2003-08-27 23:11
依夢兒
我都是用這個算:
http://javascript.internet.com/equivale ... erter.html
不過台灣時間要多加 8 小時,不然會有時差。

[問題]只取出特定日子的文章??

發表於 : 2003-09-25 10:29
w1120161
請問一下,若我想只取出特定日子的文章要怎麼做??
比如:2003年4月4號.......
這要怎魔寫呢??

麻煩有誰知道能教一下,謝謝! :-)

------------------------------------------------------------------------------------
●架設主機作業系統:國外主機不明。
●上網方式:ADSL。
●安裝的程式:Apache + php + MySql。
●phpBB2 版本:phpBB (2.0.5)。

發表於 : 2003-09-25 11:12
ethan
SELECT from_unixtime(topic_time, '%Y-%m-%d') FROM bbs_topics where from_unixtime(topic_time, '%Y-%m-%d') like '2003-04-04'

[問題]取出一段時間文章???

發表於 : 2003-09-25 19:51
w1120161
不好意思, 再請問一下, 若要取出4月1日到4月14日的文章又要如何撰寫呢??

請幫幫忙, 謝謝!!! :-)

發表於 : 2003-09-26 03:16
ethan
where from_unixtime(topic_time, '%Y-%m-%d')>='2003-04-01' and from_unixtime(topic_time, '%Y-%m-%d')<='2003-04-14'