<?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')");
The results stream by but no updates? I must be missing something...
Thanks
datetime) VALUES ('$update')"); Still no luck? Hmm..