Home > Backend Development > PHP Tutorial > easyui-datagri+checkbox 如何用getSelections把数据保存成数组?

easyui-datagri+checkbox 如何用getSelections把数据保存成数组?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:33:35
Original
1324 people have browsed it

checkboxeasyuiphpdatagrid

用的easyui-datagrid,里面加了个 checkbox


我怎么根据多行选择的数据保存为数组发送给php,由php来分隔数组后来执行修改。
<code> function edit(){                  var row = $('#dg').datagrid('getSelections');                     for(var i = 0; i<row.length alert : url="../php/test.php?o=edit&uid="></row.length></code>
Copy after login

只会用这种方法来获取uid,我应该怎么把他保存成数组。

<code> if($o == 'edit'){            $uid = $_GET['uid'];            $profit_date = date('Y-m-d');            $sql = "update e_user set profit_date = '$profit_date' where uid='$uid'";            execute_data($sql);}</code>
Copy after login

求指导。

Related labels:
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