PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
why not make it apart of the return data? I'm curious how you come to the conclusion that $Total is null. In some instances, if a variable is zero, php will not print anything for it. Try using var_export() to make sure.
It was a bug someplace else, what was happening is that it was trying to return the value of $Total before the function was being called. I couldn't return it with the function because I don't want to risk breaking the code I wrote which outputs it into a table.
passing global variables as parameters should be the optimal way to do it...why do you use global variables...please reconsider...or you might have to change all your code later on...