How to standardize the operation of two fields in laravel5.5 where condition?
天问
天问 2018-09-14 16:43:41
0
3
1358

laravel5.5 How to standardize the operation of two fields of where condition?


微信截图_20180914163942.png

天问
天问

reply all(2)
风行者

I don’t know what your checktime is like, but there is something wrong with your logic.

Assuming that the logic is correct and the writing is strong, write a.checktime after time() as a string, and a.checktime>time()/2 is the correct solution.

秋香姐家的小书童

Operation? ? ? ?

  • reply Timestamp minus numeric field.
    天问 author 2018-09-15 11:53:27
  • reply It is recommended to find out and then subtract and then execute SQL for the best effect.
    秋香姐家的小书童 author 2018-09-15 11:56:30
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template