$MONTH="2009-12-%";
$UPDATECODE='200912';
//import
Query2Var("select count(*) as serverchk from center_conf_exchangerate where exdate like '$MONTH' ","conf_exchangerate");
$SQL1=Query2SQL("select currency, exdate,finishdate,rate,baht, '$UPDATECODE' as amenddate, usrname from center_conf_exchangerate where exdate like '$MONTH' ","conf_exchangerate");

//export

Query2Var("select count(*) as serverchk from center_conf_exchangerate_export where exdate like '$MONTH' ","conf_exchangerate_export");
$SQL2=Query2SQL("select currency, exdate, finishdate, rate, baht, '$UPDATECODE' as amenddate, usrname from center_conf_exchangerate_export where exdate like '$MONTH' ","conf_exchangerate_export");