Home >Backend Development >PHP Tutorial >tp3.2.3 table方法为什么可以select不能save操作?

tp3.2.3 table方法为什么可以select不能save操作?

WBOY
WBOYOriginal
2016-06-20 12:40:131487browse


tp 3.2.3的table方法为什么可以select不能save操作?

$live = D('live');$live->table('br_live')->where(array('newsId'=>$data['newsId']))->save($liveInfo);

以上不执行
可查询的时候,是正常的
$live->table('br_news')->alias('n')->field('n.*,l.*')->join('left join br_live l ON n.newsId = l.newsId')->where(array('n.newsId'=>$data['newsId']))->find();

新手求助??????


回复讨论(解决方案)

自己结贴了。。。。

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