0) { foreach($_SESSION['pricebook_check'][$_SESSION['pricebook_id']] as $key=>$value) { if($_SESSION['pricebook_check'][$_SESSION['pricebook_id']][$key]=="true") { $GLOBALS['db']->query("delete from ecmpricekopias_ecmproducts where id='".$key."'"); } } header("Location: index.php?module=EcmPriceKopias&action=DetailView&record=".$_REQUEST['return_id']); ?>