< 返回新闻公共列表
ECshop php验证码在半小时内有效的计算方法
发布时间:2019-04-29 10:40:37
$res = $GLOBALS['db']->getOne("SELECT yqm from " . $GLOBALS['ecs']->table('yqm') .
" WHERE yqm = '$yqm' and ((now()-createdate)/1800)<=30 limit 1" );
//一分钟有60秒半个小时是60*30=1800 <=30是表示在半分钟内
//SELECT yqm,((now()-createdate)/1800),createdate from `www_jdzqstd_com`.`ecs_yqm` WHERE yqm = '8Rb8uB' and ((now()-createdate)/1800)<=30 limit 1