PHP MYSQL Add up number of entries in single table and display in HTML

Posted by Derek on Stack Overflow See other posts from Stack Overflow or by Derek
Published on 2010-03-16T14:05:59Z Indexed on 2010/03/16 14:16 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

I have a table called activities which contains a number of activities for projects (for example 6 activities are related to one project). On a manage projects page, you can see the projects, and I have one column which needs to display the number of tasks associated with the project (in that particular row).

So basically, I need a query or PHP calculation that can add up the number of tasks for the project and then display this number dynamically! I know exactly what I need, just do not know how to implement it. Any help is much appreciated! Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql