ryanhart
Založený: 08.04.2004
Príspevky: 12
Zaslal: 2005-07-29 16:35
Návrat hore
Odpovedať s citátom
|
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
Založený: 31.05.2005
Príspevky: 34
Zaslal: 2005-07-29 22:38
Návrat hore
Odpovedať s citátom
|
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.
| Kód: |
| $opts['fdd']['columnname']['sql|LF'] = 'if(columnname <> "0.00", CONCAT("$", FORMAT(columnname, 2)), columnname)'; |
replace columnname with your column.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|