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

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

WBOY
Release: 2016-06-20 12:40:13
Original
1485 people have browsed it


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

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

以上不执行
可查询的时候,是正常的
$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();
Copy after login

新手求助??????


回复讨论(解决方案)

自己结贴了。。。。

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