Home > Backend Development > PHP Tutorial > 复选数据汇总有关问题

复选数据汇总有关问题

WBOY
Release: 2016-06-13 12:48:52
Original
689 people have browsed it

复选数据汇总问题
复选框,如果我想对选择的数据进行group_concat()操作,请问怎么做呢?


------解决方案--------------------
$in=implode(',',$_POST['id']); //假设复选框name为id[]<br />
$sql="select id, group_concat(name) from tt where id in($in) group by id";<br />
...
Copy after login
Related labels:
source:php.cn
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