thinkphp 超简单问题 。新手求助。。

WBOY
Release: 2016-06-23 14:26:42
Original
888 people have browsed it

在使用model的时候 添加条件。。

$map['id'] = 5;
$map['title'] = array( 'like',"%".t($_POST['title'])."%" );

上述是等于和模糊查询的条件

那么 我要查询create_time time()
即:当前时间 大于创建时间   更新时间 小于当前时间怎么写额。。。
$map['eTime'] = array( '
新手问些低级问题 别见怪。。
在线等。。。


回复讨论(解决方案)

$map['eTime'] = array( 'lt',time() );

ok thanks

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