[PHP] help with Log() function

2003-11-28 Thread Jon King
Hello, I'm having trouble getting a log formula to work. This forumla is supposed to return the number of payment required zero out a loan balance. /* n = - (LN(1-(B/m)*(r/q)))/LN(1+(r/q)) q = amount of annual payment periods r = interest rate B = principal m = payment amount n = amount payment

[PHP] xml parse error?

2003-04-02 Thread Jon King
I'm trying to parse a simple xml file, but I keep getting a strange error at $node->name which returns #text. Is this normal or am I doing something wrong? >From what I understand, the $node->name should return "branch" but it returns #text. TIA Jon --- PHP Code ---