Files
crm.e5.pl/modules/EcmPriceKopias/updateremarks.php

11 lines
619 B
PHP
Raw Normal View History

2024-04-27 09:23:34 +02:00
<textarea><?
$w=$GLOBALS['db']->query("select * from ecmproduct_language");
print mysql_error();
while($r=$GLOBALS['db']->fetchByAssoc($w)){
if($r['language']=="PL")print "update ecmpricekopias_ecmproducts set remarks_pl='".$r['remarks']."' where ecmproduct_id='".$r['ecmproduct_id']."'";
if($r['language']=="EN")print "update ecmpricekopias_ecmproducts set remarks_en='".$r['remarks']."' where ecmproduct_id='".$r['ecmproduct_id']."'";
if($r['language']=="DE")print "update ecmpricekopias_ecmproducts set remarks_de='".$r['remarks']."' where ecmproduct_id='".$r['ecmproduct_id']."'";
print "<br>";
}
?></textarea>