Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, May 1, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Currency Formatting?

phpMyEdit General     Currency Formatting?
Post new topic   Reply to topic    
 
ryanhart     Joined: 08 Apr 2004   Posts: 12  
Post Posted: 2005-07-29 16:35
Back to top  Reply with quote     

I can't figure out how to format currency with commas.
This is what I have so far...
example:
'mask' => '$%01.2f', = $123567.00

the result I want is: $123,567.00

I would appreciate any suggestions.

Thanks,

Ryan

 
guardian46     Joined: 31 May 2005   Posts: 34  
Post Posted: 2005-07-29 22:38
Back to top  Reply with quote     

Ryan,

Doug posted this for me in another thread and it works for me. I'm using the CVS ver 1.167 of phpMyEdit.class.php.

Code:
$opts['fdd']['columnname']['sql|LF'] = 'if(columnname <> "0.00", CONCAT("$", FORMAT(columnname, 2)), columnname)';


replace columnname with your column.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy