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

WBOY
Release: 2023-03-03 09:54:02
Original
1089 people have browsed it

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>
Copy after login

You can use interval query

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
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!