<?php
(一)模糊查询的多字段之间关系为AND
public function findWithInput()
{
$SellerLocation = D('SellerLocation');
$input = I('input');
if (!$input) {
$this->ajaxReturn(array('result' => 'false', 'data' => 'Unable to get your input parameters'), 'JSON');//无法获取用户输入参数
} else {
//多字段之间是AND关系
$where['store_name & street & province & city & county & town & specific_address'] = array('like', "%$input%");
$list =
ThinkPHP多字段匹配模糊查询
最新推荐文章于 2025-04-10 22:32:47 发布