PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > PHP
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 11-8-05, 03:35 PM   #1
barryb
Registered
 
Join Date: Aug 2005
Location: FL
Posts: 4
Reputation: 0
PHP Mortgage Calculator quirk

I have had this PHP script working fine until now:
http://www.loansanddebts.com/mortgage_calculator.php

Source here:
http://www.loansanddebts.com/view.ph...lator_code.php

PowWeb's PHP upgrade must have affected it: now it outputs the letter "t" instead of a comma, for example:

Down Payment: $50t000.00

PHP quirk shows up here:
http://www.redimortgage.com/tools/


Any ideas? Thanks.
barryb is offline  
Old 11-8-05, 03:58 PM   #2
mitchind
Older not wiser
 
mitchind's Avatar
 
Join Date: Nov 2003
Location: Calgary, AB
Posts: 2,472
Reputation: 205
I think you're stretching it a bit to think PHP upgrade would cause this.

Yore supposed to substitute "thousands_sep" for the string (eg. ",") that you want to use as the thousands seperator.

From the manual:
Quote:
The first character of thousands_sep is used. For example, if you use bar as thousands_sep on the number 1000, number_format() will return 1b000.
mitchind is offline  
Old 11-8-05, 04:41 PM   #3
barryb
Registered
 
Join Date: Aug 2005
Location: FL
Posts: 4
Reputation: 0
Thanks, mitchind. That worked. Funny, it had worked fine for a year, and then all of a sudden started outputting the "t" instead of the comma. Nothing else changed except for the PHP upgrade -- so I jumped to blame it. All fixed -- thanks again.
barryb is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:44 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.