Get the App
SLTechnology News&Howtos  ›  Development  › 

Use php+mysql to query the data instances of that day, this week and this month.

Shulou Source: shulou.com Published: 2022-06-03 20:06:07 11月12日 Update

This article mainly introduces "using php+mysql to query the data instances of that day, this week and this month". In the daily operation, I believe many people have doubts about using php+mysql to query the data examples of that day, this week and this month. I have consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "using php+mysql to query data instances of that day, this week and this month." Next, please follow the editor to study!

/ / where video is the table name; / / createtime is the field; / the database time field is a timestamp / on the day of the query: $start = date ('Y-m-d 00lv 00lv 00'); $end = date (' Y-m-d Hlav table_ s'); SELECT * FROM `table_ name` WHERE `time` > = unix_timestamp ('$start') AND `time` = unix_timestamp ('. $start.') AND `time` = unix_timestamp ('$start') AND `time`

Tags: Time data query parameter instance learning start field date more result help legal practical next between function hour number database Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Microsoft vpn OPPO Reno