else if($dopost=="save") { |
$memberarcnum = $dsql->GetOne("SELECT count(*) FROM `dede_archives` WHERE mid='".$cfg_ml->M_ID."' AND FROM_UNIXTIME(senddate,'%Y-%m-%d') = curdate()"); //判断当前投稿数量是否大于3篇 if($memberarcnum['count(*)'] > 3) { ShowMsg("对不起,您所在会员组每日只可投稿3篇!","/member/content_list.php?channelid=1"); exit(); } |