$data['c_class'] = I('c_class','','htmlspecialchars');
$data['c_content'] = I('c_content','','htmlspecialchars');
$data['code'] = I('code','','htmlspecialchars');
$data['c_keyword'] = I('c_user','','htmlspecialchars').','.I('c_type','','htmlspecialchars');
$data['c_time'] = date('Y-m-d H:i:s');
$content=D('Content');
if ($content->create($data)) {
if ($content->add($data)) {
$this->success('告白内容发布成功!<br/>正在跳转到首页。。。',U('Index/index'));
}else {
$this->error('对不起,告白内容发布失败~');
}
}else {
$this->error($content->getError());
}
此段代码为什么向阿里的数据库写入不了数据?在阿里数据库管理还是mysqladmin时,可以,现在成了dms就不可以了,是在网页post过来的数据,测试数据能收到,数据库连接也成功,就是写入不了数据。。。本地测试正常 最佳答案
