PHP program to compare haiku archive tables