看板
[ PHP ]
討論串[請益] 在每個欄位插入時間
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
請問一下... $t=date("H時i分s秒");. 我想把時間..插入於mysql的資料可以嗎?. 比方說. 本來的欄位是... | 1 | 2 | 3 |. ---------------. | x | x | x |. | x | x | x |. (以下省略). 然後將時間插入變成. |
(還有104個字)
內容預覽:
純 sql 作法. 假設表格為 test. 1. test 表格增加三個 time,time1,time2 欄位. 2. INSERT INTO test (time2) SELECT concat_ws('時',1,2) from test. 3. INSERT INTO test (time1)
(還有29個字)
內容預覽:
咦..我好像弄出來了@@". $a="time";. $t=date("H時i分s秒");. for ($i=0; $i<$cols; $i++){. echo "<th>",htmlentities(mysql_field_name($result,$i)),"</th>";. }. echo "
(還有236個字)
首頁
上一頁
1
下一頁
尾頁