Since you are looping through the result set, simply multiply as you go. Am I missing something? If you loop through the result set and store it in an array, you will have to loop through the array again - seem likes unneccessary replication to me.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.