20,359
社区成员
发帖
与我相关
我的任务
分享
select * from member_basic where DATE_FORMAT(borthday,'%m-%d') between '01-01' and '01-20';
$birthday = explode('至', $birthday);
$startime = $birthday[0];
$endtime = $birthday[1];
$where[] = [DATE_FORMAT('borthday','%m-%d'), 'between time', [$startime, $endtime]];
$this->assign('birthday', $birthday);
db('member')
->alias("a")
->join('member_basic af','a.userid = af.userid')
->field("*")
->where($where)
->order(array('a.userid' => 'desc'))
->paginate($limit);