search

Home  >  Q&A  >  body text

How to achieve like once a day in php


More categories

戏江戏江1790 days ago1278

reply all(4)I'll reply

  • junwind

    junwind2020-01-14 17:26:04

    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.

    reply
    0
  • G皓

    G皓2020-01-09 16:31:29

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


    reply
    1
  • G皓

    Syntax error in the first line (missing)

    G皓 · 2020-01-09 16:32:56
  • 像风一样自由

    像风一样自由2020-01-06 21:13:06

    Just act

    reply
    0
  • Cancelreply