Home >Backend Development >PHP Tutorial >thinkphp3.2 where statement query
$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? J8]NF3$)SHIW9K77D%_F~J6.png ( 49.18 KB Download: 1 time)