<?php
require "dbconnect.php";
$resultno = mysql_query("SELECT `time` FROM syslog");
while($row = mysql_fetch_array($resultno))
{
$mysqltime = $row['time'];
$timestamp = strtotime($mysqltime);
$update = date("Y-m-d H:i:s", $timestamp);
echo $update;
}
$mysqlupdate = mysql_query("INSERT INTO (`datetime`) VALUES ('$update')");
結果通過但沒有更新?我必須失去了一些東西......PHP MYSQL INSERT不能正常工作?
感謝
$ mysqlupdate =請求mysql_query( 「INSERT INTO系統日誌(`datetime`)VALUES( '$更新')」); 還沒有運氣?嗯.. – mrlayance 2011-01-11 19:18:15