PHP/MySQL help!!! Created 19 years ago2004-09-17 00:28:41 UTC by FoxFire FoxFire

Created 19 years ago2004-09-17 00:28:41 UTC by FoxFire FoxFire

Posted 19 years ago2004-09-17 00:28:41 UTC Post #60042
If anyone here knows PHP and MySQL math stuff please help me!
I have a field called post_reply and I want to add up all of the post_reply's that have the same value of post_id(coresponding post that the reply is replying).

Here is what I want to know how to do:
I want to know how many rows have a post_reply value that equal the post_id of the row I am counting replies for. If you don't understand what I am asking, please tell me, and I'll try to reword it. Thanks
-FoxFire
Posted 19 years ago2004-09-17 17:00:57 UTC Post #60237
i am.... just... :zonked:
Luke LukeLuke
Posted 19 years ago2004-09-28 01:05:34 UTC Post #62579
I have no clue what you are saying :zonked:

Are you perhaps meaning you want to find all the rows with an identical post_id and add up the post_reply field for those rows, or perhaps add up the post_reply field for all rows where post_id is equal to post_reply?

ND
You must be logged in to post a response.