Home >Backend Development >PHP Tutorial >thinkphp3.2 where statement query

thinkphp3.2 where statement query

WBOY
WBOYOriginal
2016-10-22 12:06:451378browse
$res=$User->where('id="'.$id.'"')->save($data);public function caozuo(){<br>               $User = M('Info');<br>               $aid=$_GET['content'];<br>                $data = $User->field('content')->select();<br> <br>               $date['content']=$congt;<br>                $congt=$_GET['content'];<br>                 $reslut=$User->where('id="'.$id.'"')->save($data);<br>                 $this->assign('content',$data); // Template variable assignment<br>                    $this->display();<br> }Excuse me, how should I use this sentence? Can you give me an example?

thinkphp3.2 where statement query J8]NF3$)SHIW9K77D%_F~J6.png ( 49.18 KB Download: 1 time)

Statement:
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
Previous article:tp5 model questionNext article:tp5 model question