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 process the selected data and summarize the data of the entire table. Check box operation database problems
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 , I think your problem may be the value attribute value, which is very simple. like me, insert the value = "" in the middle of the PHP code, and then output the data you recorded through echo, after you click "process data", you can find the data in $ _ POST ['checkbox']. you can use var_dump ($ _ POST ['checkbox']) to view the data.