Well, would the archive be a flat text file or another mysql table? (I assume you are using a database, probably mysql, am I right?).
Anyway, if you are on a Linux box, you could set up a cron job to run a PHP script every morning, say at 12:00 am. The PHP script would search the database for rows with dates that are older than two years.
It would then generate a SQL query to to take those rows, insert them into the new table, and then delete them from the old table:
[tt]
INSERT INTO newtable (id,field1,field2,field3....) VALUES ($id,$field1,$field2,$field3...)
DELETE FROM oldtable WHERE id=id
[/tt]
I would set up the archive to have all of the information from the large table, along with a date that says what time the new data was added to the archive.
You could then build a simple search that would allow a user to search for a date archived, date entered, title, or whatever you want to let the user search by.
You could:
[tt]
SELECT * FROM newarchive WHERE $field LIKE '%$query%'
[/tt]
You can start with that. Writing the entire script for this would be too much right now, but if you need more help, don't hesitate to ask.
Hope this helps.
-Vic vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====