7 lines
368 B
PHP
7 lines
368 B
PHP
<?
|
|
$w=$GLOBALS['db']->query("select recipientcode,pricebookid,productid from pricebookproductrel");
|
|
print mysql_error();
|
|
while($r=$GLOBALS['db']->fetchByAssoc($w)){
|
|
$GLOBALS['db']->query("update ecmpricekopias_ecmproducts set recipient_code='".$r['recipientcode']."' where ecmproduct_id='".$r['productid']."' and ecmpricekopia_id='".$r['pricebookid']."'");
|
|
}
|
|
?>
|