$LINK1 = mysql_connect($host1, $user1, $password1);
$LINK2 = mysql_connect($host2, $user2, $password2);
...
$sql = "SELECT col1,col2 FROM TABLE1";
$res = mysql_query($sql, $LINK1);
$row = mysql_fetch_assoc($res);
$sql = "INSERT INTO TABLEARCHIVE (col1,col2) VALUES ('".$row['col1']."','".$row['col2']."');
mysql_query($sql, $LINK2);
---------------
http://poemes.iceteapeche.com - http://www.simuland.net