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

thinkphp3.2 where statement query

WBOY
Release: 2016-10-22 12:06:45
Original
1358 people have browsed it
$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)

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