Thanks!! Is it possible to move the files to a different database? Can I use two databases for below?
'files' table would be from database_A and 'archive' table from database_Z.
Is this possible?
$query = "INSERT INTO archive(name, type, size, content, file_date) SELECT name, type, size, content, file_date FROM files WHERE CURDATE() >= DATE_ADD(file_date, INTERVAL 1 DAY)";