如果是月份就是当前的月减去你要统计的时间如我要查询数据库中从今天起往前三个月的所有记录,我们的语句如下:mktime(date(\'h\'),date(\'i\'),date(\'s\'),date(\'m\')-3,date(\'d\'),date(\'y\'));七天内的:mktime(date(\'h\'),date(\'i\'),date(\'s\'),dat
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