我是刚入道菜鸟,求助

浏览:182 发布日期:2018/01/25 分类:求助交流
public function gai(){
$nei['title']=I('title');
$nei['neirong']=I('neirong');
$nei['time']=I('time');

if (M(user)->where(array(id=>I("id")))->save($nei)){
$this->success("修改成功",U('home/admin/index'));
}else{
$this->error("修改失败!");
}
}

这个是里面代码
<form method="post" action="{:U('Admin/gai')}">
<volist name="neibian" id="bianji">
<table width="594" height="108" border="0">
<tr>
<td width="54" height="35">标题</td>
<td width="530"><input type="text" placeholder="输入标题" name="title" value="{$bianji.title}" />
</td>
</tr>
<tr>
<td height="21">内容</td>
<td><textarea name="neirong" style="width:500px; height:350px;">{$bianji.neirong}</textarea></td>
</tr>
<tr>
<td height="21">时间</td>
<td><input type="text" name="time" value="{$bianji.time}" /></td>
</tr>
<tr>
<td height="21" colspan="2"><input type="submit" name="button" value="修改" />
<input type="reset" name="button2" id="button" value="返回" /></td>
</tr>
</table>
</volist>
</form>
这个是静态页面,只要已修改就提示错误,实在看不那里错,各位大侠请帮忙看下。
最佳答案
评论( 相关
后面还有条评论,点击查看>>