Home  >  Article  >  Backend Development  >  php查询mysql后如何合并相同字段值再输出

php查询mysql后如何合并相同字段值再输出

WBOY
WBOYOriginal
2016-06-23 13:56:161197browse


适用php查询后输出到表格,想让catalogue这个字段只输出键盘和鼠标两个大类。
例如:


回复讨论(解决方案)

可在服务端用 php,也可在客户端用 js
这取决于你是如何显示网格的

查询是在前段使用php页面来查询的。请问下哪种方式好一些呢

这不是哪种方法好的问题,而是哪种方法做起来更简单的问题
所以要根据你已有的代码来选择

Statement:
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