简体   繁体   English

使用php仅访问一次页面

[英]Accessing a page only once using php

I just created an attendance management system. 我刚刚创建了一个考勤管理系统。 Now I want the user to add the attendance only once a day, and restrict them if they try to do it again. 现在,我希望用户每天只添加一次出勤,并且限制他们再次尝试出勤的机会。 How would i do that? 我该怎么办? And is there any example to start with? 有什么例子可以开始吗? Thanks in advance. 提前致谢。

You can use timestamp on your database. 您可以在数据库上使用时间戳。 Check timestamp from database if user add the attendance before saving into the database. 如果用户在添加到数据库之前添加了考勤,请从数据库中检查时间戳。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM