thinkphp fuzzy query about the problem, the code is as follows

Source: Internet
Author: User
thinkphp fuzzy query problem, the code is as follows
$reg = M (' Doctor ');
$data =$_post[' text '];

$map [' name '] = Array (' Like ', '% $data% ');
$result = $reg->where ($map)->select ();
$this->doctor = $result;
$this->display (' Search ');
Do not know which place is wrong, do not display the results of the query, nor error thinkphp thinkphp Select

Share to:


------Solution--------------------
Now that you can find the SQL statement, then the next step by step down test ah, there are no steps!

What do you mean, "no results in Dreamweaver"? Oh, I don't understand. Can dreamweaver take the browser preview function directly?
------Solution--------------------
It sounds more like your code compatibility issue.

More in favor of HTML+CSS+JS compatibility issues
------Solution--------------------
Reference:
or not, direct error.

What's wrong with the hint? Even SQL is not output. Then you check your program.
------Solution--------------------
$this->doctor = $result;???
What do you mean?

Assigning a value to a template isn't that true?
$this->assign (' name ', $name);

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.