Hello,
i m new one in php/mysql, i m facing problem to calculate the two fields, in my database i have two fields the one is "debit" and second one is "credit"(and third one is (may be wrong) "Balance")
Now i m wana to subtract "debit" from "credit" and then store the result in the "Balance", and at the end i also wana to get the sum of "Debit" , "Credit" and "Balance".
So plz if any one have best idea to solve this matter, will be appreciated.
Regards.
ismael ahm@d
0
Newbie Poster
darkagn
315
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.