<?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