Home >Backend Development >PHP Tutorial > 急怎么读取数据表中分数计算总分后写入另一个数据表中

急怎么读取数据表中分数计算总分后写入另一个数据表中

WBOY
WBOYOriginal
2016-06-13 12:41:091050browse

求助:急!如何读取数据表中分数计算总分后写入另一个数据表中?
我设定了一个打分表tb_xmpf,里面列有项目名称xmpf_xm、评委姓名xmpf_user、和评委给出的分数xmpf_small_zf,现在想计算每个项目所得到的总分和平均分,写入项目表tb_xm中xm_zf、xm_avg两列中,并按照xm_zf输出表格,刚接触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
Previous article: php入门级图书 Next article: PHP信箱激活功能