query("select l.long_description, p.name, p.code, p.product_category_name from ecmproducts as p inner join ecmproduct_language as l on l.ecmproduct_id=p.id where p.deleted='0' and (l.long_description!='' or l.long_description is not null) and (l.language='PL' or l.language='pl') and p.product_active='1' and p.production!=1 and p.end_of_line!=1 order by p.product_category_name asc,p.code asc"); while($r=$GLOBALS['db']->fetchByAssoc($w)){ echo "
".$r['code']."
".$r['name']."
".$r['product_category_name']."
".str_replace("<","<",str_replace(">",">",$r['long_description']))."

"; } ?>