Skip to content
Advertisement

PHP Mysqli add subtract number format

HI just found a solution about add and sustract two columns here but I need to make the php code to format the numbers.

Here is the solution I got here:

JavaScript

Its working fine for what I need but here is the thing. I use to run the follow php code to all money and numbers

JavaScript

That way the numbers will display without decimals and like this 100.000

How can I make the code I found here to work with number format?

Something like this I tried but does not work

JavaScript

It must substract and then show the result with formated numbers

Advertisement

Answer

you need to put it in ()

JavaScript

More than 2 :

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement