Search the Community
Showing results for tags 'subtraction'.
-
Hi I have a database in the database is a table called incomeuser1 there is a column called AMOUNT. Theres is also another table called expenseuser1 and a column called EXPAMOUNT. What code do i use to subtract one from other. For example if incomeuser1 AMOUNT was say 50.00. And expenseuser1 EXPAMOUNT was say 35.50 how do i subtract and echo the result as 14.50 using 2 decimal places ? Also if the sum was a minus figure how would i display that in red? Novice learner
-
Hi, I am fairly new to using this website. I have to create a Budget tool in PHP. I am unsure of how to go about starting this though. The tool is supposed to subtract different items from a total amount. For example, subtracting rent, food, bills etc from a total amount input. This should then go about telling a user how much money they are left off at the end of their session. Any help would be much appreciated! Thank you.
- 9 replies
-
- calculator
- php
-
(and 3 more)
Tagged with: