Home > Backend Development > PHP Tutorial > 关于php的判断语句,该怎么处理

关于php的判断语句,该怎么处理

WBOY
Release: 2016-06-13 11:40:37
Original
872 people have browsed it

关于php的判断语句

	$pubdate = $dsql->GetOne("select pubdate from article where writer ='".$writer."' order by id desc limit 1");<br />	if((time()-$pubdate['pubdate'])<(3600*24)){<br />		ShowMsg("对不起,一个会员每天只能发一篇文章!","-1","0",5000);<br />		exit;<br />	}
Copy after login


以上判断一个会员在一天内只能提交一篇文档,想修改成可以提交3篇,应该怎么做?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template