Hi,
Here's my code now...
$query = "INSERT INTO archive_excel(name, file_date) ".
"SELECT name, file_date ".
"WHERE GETDATE() >= DATEADD(day, 1, file_date)";
Tested it on SQL Server - gives no errors but doesn't move the data to the archive_excel table.
The file_date value in excel table is: 15/05/2006 16:04:00
I think the problem is with the time. How can I remove reference to the time?
Thanks.