博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
thinkphp数据库添加表单提交的数据
阅读量:7165 次
发布时间:2019-06-29

本文共 124 字,大约阅读时间需要 1 分钟。

$data['catename'] = I('catename');     获取表单的数据

$cate=D('cate');                               实例化cate表
$cate->create($data);                      根据提交数组创建数据对象
$cate->add();                                  数据对象入库

转载地址:http://tzxwm.baihongyu.com/

你可能感兴趣的文章