复选框操作数据库的有关问题
Jun 13, 2016 pm 12:49 PM
复选框操作数据库的问题
表名:sale_order
表结构:
ID
order_id
name
quantity
Price
Address
Region
现在是这样,这个表内容我会显示在一个页面上,然后每条记录有个复选框,复选想要处理的记录,点提交
把复选的数据汇总处理
我的问题是怎么对选择的数据进行处理,对整个表的数据进行汇总我会。
------解决方案--------------------
在输出到页面的时候,给每条记录前加一个" />,我想你的问题可能就是这个value属性值,很简单,像我这样,把value=""中间再插入PHP代码,然后把你记录的数据通过echo输出,这样在点击处理数据之后,就可以在$_POST['checkbox']里找到数据了,你可以var_dump($_POST['checkbox']);看一下

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution: Your organization requires you to change your PIN

How to adjust window border settings on Windows 11: Change color and size

How to change title bar color on Windows 11?

How to enable or disable taskbar thumbnail previews on Windows 11

OOBELANGUAGE Error Problems in Windows 11/10 Repair

10 Ways to Adjust Brightness on Windows 11

How to turn off private browsing authentication for iPhone in Safari?
