Easyui-datagri+checkbox How to use Getselections to save data to an array?

Source: Internet
Author: User
Keywords CheckBox Easyui php DataGrid
Checkboxeasyuiphpdatagrid

Easyui-datagrid, with a checkbox in it.


How do I save an array based on multiple rows of selected data sent to PHP, which is separated by PHP and subsequently executed for modification.
 function edit(){                  var row = $('#dg').datagrid('getSelections');                     for(var i = 0; i
   
   < code="">

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

 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);}

求指导。

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.