分享到: ------解决方案-------------------- 连接数据库就不写了,按照表格输出也很简单。
$query="select xmpf_xm,sum(xmpf_small_zf) zf,avg(xmpf_small_zf) avg from tb_xmpf group by xmpf_xm";//查总分平均分
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