Home >Backend Development >PHP Tutorial >I would like to ask if there is a function in thinkphp3.1 to query the information within the filling time?

I would like to ask if there is a function in thinkphp3.1 to query the information within the filling time?

WBOY
WBOYOriginal
2016-12-05 13:44:191128browse

I would like to ask if there is a function in thinkphp3.1 to query the information within the filling time?
For example, information from 2016/11/21 01:00 ~ 2016/11/21 02:00

Reply content:

I would like to ask if there is a function in thinkphp3.1 to query the information within the filling time?
For example, information from 2016/11/21 01:00 ~ 2016/11/21 02:00

<code>$where['add_time'] = array(array('egt',$starttime),array('elt',$endtime),'AND');
</code>

You can use interval query

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn