thinkPHP 模糊查询有关问题,代码如下

WBOY
Release: 2016-06-13 12:36:58
Original
826 people have browsed it

thinkPHP 模糊查询问题,代码如下
$reg = M('doctor');
  $data =$_POST['text'];

      $map['name'] = array('like',"%$data%"); 
     $result = $reg->where($map)->select();
$this->doctor = $result; 
  $this->display('search');
不知道哪个地方出了错,不显示查询结果,也不报错

thinkPHP thinkphp select
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!