Rumah >pembangunan bahagian belakang >tutorial php > 关于php的判断语句,该怎么处理
关于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 /> }