$userForm=M('user'); //实例化数据表$where['name']=array('like','%查询条件%');//写查询条件$userForm->where($where)->select();