thinkphp 怎么按时间段查询??

2025-04-15 23:48:26
推荐回答(1个)
回答1:

$sql='select * from think_mytask where strtotime(starttime)<=$time and="">=$time';
应该是这样吧

$sql='select * from think_mytask where strtotime(starttime)<=$time and strtotime(endtime
)>=$time';