query("update ecmstocks set main='0'"); $GLOBALS['db']->query("update ecmstocks set main='1' where id='".$_REQUEST['record']."'"); header("Location: index.php?module=EcmStocks&action=index"); ?>