add()可以添加到数据库,save()方法不能修改数据库?为什么
thinkphp吧
全部回复
仅看楼主
level 1
var_dump(_$post)有数据上去,我也清了runtime的缓存,也没用。为什么呢???
2019年03月24日 14点03分 1
level 1
2019年03月24日 14点03分 2
level 1
就是用save()方法数据库没有更新数据,但是用add()方法可以添加数据
2019年03月24日 14点03分 3
level 7
save()方法用于模型的新增和更新,数据库Db类新增用insert(),更新用update()
2019年03月25日 06点03分 4
1