Check box for database operations

Source: Internet
Author: User
Check box database operation problem table name: sale_order table structure: IDorder_idnamequantityPriceAddressRegion this is now the case, the table content will be displayed on a page, and each record has a check box, check the record to be processed, click submit to summarize the selected data. my problem is how to operate the database on the selected data in the check box.
Table name: sale_order
Table structure:
ID
Order_id
Name
Quantity
Price
Address
Region

Now, the table content will be displayed on a page, and each record has a check box. check the record to be processed and click submit.

Summarize and process selected data

My problem is how to process the selected data and summarize the data in the entire table.
------ Solution --------------------
Add " />,我想你的问题可能就是这个value属性值,很简单,像我这样,把value=""中间再插入PHP代码,然后把你记录的数据通过echo输出,这样在点击处理数据之后,就可以在$_POST['checkbox']里找到数据了,你可以var_dump($_POST['checkbox']);看一下

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.