Home > Backend Development > PHP Tutorial > 用EasyUI的修改数据库内容有关问题

用EasyUI的修改数据库内容有关问题

WBOY
Release: 2016-06-13 12:19:32
Original
1015 people have browsed it

用EasyUI的修改数据库内容问题?


点击修改时,可以获取数据库的内容,但提交修改密码可以修改成功,但是权限总是修改第一条的,为啥呀?

------解决思路----------------------
建议你检查一下 $_POST['id'] 是否正确
------解决思路----------------------
这种情况是因为记录id在提交时没有正确传递当前的记录id.
检查一下:$id = $_POST['id'];
------解决思路----------------------
datagrid的js渲染时加上这个试试


<br /><br />			//去除记录勾选缓存<br />			onLoadSuccess: function() {<br />				$('#dgMain').datagrid('clearSelections'); //一定要加上这一句,要不然datagrid会记住之前的选择状态<br />			},<br />
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template