query("update ecmpricebooks_customview set name='".$_REQUEST['name']."',columns='".$columns."',titles='".$titles."',orders='".$orders."' where id='".$_REQUEST['record']."'"); else $db->query("insert into ecmpricebooks_customview values('".create_guid()."','".$_REQUEST['name']."','".$columns."','".$titles."','".$orders."')"); header("Location: index.php?module=EcmPriceBooks&action=DetailView&record=".$_SESSION['pricebook_id']."&tab=items"); ?>