[PHP] Array + postgresql + braincramp

2003-11-18 Thread Roy Cabaniss
The problem is most likely that I have been looking at it for too long and missed the obvious. I know I can make multiple fields in the database and work with it that way, but I'm sure an array is the proper solution. We have a form (and how many of our tales start off like that? Bet it beats "o

Re: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Roy Cabaniss
code, it does. What I can't figure out is why, even though there is a value > 1 for $ns1, about 70% of the time, it thinks that value is one for the calculation of $gm1. > * > * Cal Evans > * Journeyman Programmer > * Techno-Mage > * http://www.calevans.com > *

[PHP] arithmatic operation inconsistant

2002-02-28 Thread Roy Cabaniss
I have a very simple php page which I am creating an accounting tutorial from. I am writing all of the equations on an include file and then calling the file at the beginning of the appropriate pages My problems lie in inconsistant arithmatic operations. For some reason the equation for $gm1