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