I am using PHP and mySQL, in my 'users'
table, I have HWID
value. With every login, the HWID
updates. How do I limit their ability in login to only use 1 HWID
in 3 days? If HWID
got updated with a different value within 3 days, it stops them from logging in?
如果数据库值在特定时间段之前更改,如何停止代码
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dongmai6666 2018-06-27 23:27关注
One way to accomplish that would be to have an additional field in your
users
table called something likeupdate_date
that keeps track of when the last time theHWID
was updated. If theupdate_date
field is still within 3 days of the last updated time, then do not let them log in.If you provide some of your code we could take a look and work from there.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 shape_predictor_68_face_landmarks.dat
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料
- ¥15 使用R语言marginaleffects包进行边际效应图绘制