MySQL Forums
Forum List  »  PHP

Php Mysql application.
Posted by: Allen Simba
Date: January 05, 2021 03:09PM

Hello, I have two tables in mysql. I want to make a query in php page that will pick some values from table transaction to other table unpaid.
Both 2 tables share the following columns(TriId, loanNumber, StaffId).
Table transaction other columns( AmountApproved, MonthlyDeduction, Date). Table unpaid other columns(OpeningBalance, AmountDeducted, CloseBalance, month, year). transaction table has details already for TriId, loanNumber, StaffId, Monthlydeduction, AmountApproved. AmountApproved should be taken to unpaid table as Opening balance then deduct it with Monthlydeduction as AmountDeducted to get closebalance lastly to show the month and year of the closebalance.
Thank you All.

Options: ReplyQuote


Subject
Written By
Posted
Php Mysql application.
January 05, 2021 03:09PM
January 05, 2021 03:23PM
January 06, 2021 01:47AM
January 06, 2021 10:31AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.