create()) { $list = $Form->save(); if "/> create()) { $list = $Form->save(); if ">
Home >Backend Development >PHP Tutorial >thinkphp 更新数据解决办法
thinkphp 更新数据
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public function edit() { $Form =M("release"); if ($vo = $Form->create()) { $list = $Form->save(); if ($list !== false) { $this->success('数据更新成功!'); } else { $this->error("没有更新任何数据!"); } } else { $this->error($Form->getError()); } $this->assign('Form',$Form); dump($Form); $this->display(); }