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);