How to achieve like once a day in php
戏江
戏江 2020-01-06 11:11:49
0
4
1196
戏江
戏江

reply all(3)
junwind

The number of likes of different users should also be distinguished here. It can be counted once a day based on the user's total number. If the day's data is stored in the cache, the button will no longer be clickable.

G皓
if(date('Y-m-d',$like['createtime']) == date('Y-m-d'){
//今天点赞了 别乱点
}else{
//点赞成功
}


  • reply Syntax error in the first line (missing)
    G皓 author 2020-01-09 16:32:56
像风一样自由

Just act

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!