php-db | 2000121
Date: 12/13/00
- Next message: Julio: "[PHP-DB] Use of ' and " (quotes)"
- Previous message: Pablo Vera: "[PHP-DB] Re: [PHP-WIN] Kinda silly question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try this:
echo "\$" . number_format($VariableName,0,'.',',');
Best regards,
Joseph Hadinata
BlueChillies Download Destination
http://BlueChillies.com
--- ORIGINAL MESSAGE ---
Format of Print
I have a question regarding formatting a number field to print as currency
using the print command. Now, my print command reads;
print $VehInventory->MarketValue
VehInventory is the table name
MarketValue is a 10 digit, numeric field which now displays 25000 and I want
$25,000
Can you help?
Thanks
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Julio: "[PHP-DB] Use of ' and " (quotes)"
- Previous message: Pablo Vera: "[PHP-DB] Re: [PHP-WIN] Kinda silly question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

