post后部分字段无法写入数据库
thinkphp吧
全部回复
仅看楼主
level 2
肥熊丫子 楼主
请大家帮忙看看,实例化数据表,然后create(),add(),可是数据库里面除了自增键有写入外,其他字段为空!这是为什么呢?
2016年03月13日 09点03分 1
level 1
你add的数据了。。
2016年03月14日 07点03分 2
数据库的相对应的字段也要赋值下吧。
2016年03月14日 07点03分
level 3
post的数据呢?
2016年03月16日 15点03分 3
level 3
因为 if this 你写成了 thi
2016年03月18日 01点03分 4
level 4
post数据库有问题
2016年03月30日 07点03分 6
level 3
add里面是空的啊,定义一个数组$data = array();把post过来的数据放到数组里,然后add($data);
2016年04月13日 06点04分 8
level 2
没有 post 你咋获取值呢
2016年04月13日 08点04分 9
level 2
[惊讶]楼主太粗心。。。
2016年04月19日 03点04分 12
1