<?
$w=$GLOBALS['db']->query("select recipient_code,ecmproduct_id,ecmpricekopia_id from ecmpricekopias_ecmproducts where recipient_code!='' and recipient_code IS NOT NULL");
while($r=$GLOBALS['db']->fetchByAssoc($w)){
	print "update ecmpricekopias_ecmproducts set recipient_code='".$r['recipient_code']."' where ecmproduct_id='".$r['ecmproduct_id']."' and ecmpricekopia_id='".$r['ecmpricekopia_id']."';<br>";
}