$query = mysql_query("UPDATE tabell1, tabell2 SET tabell1.fält1 = tabell2.fält2 WHERE tabell1.fält1=tabell2.fält2") or die(mysql_error());