PDA

View Full Version : Currency & PHP



opel
July 11th, 2004, 10:53 AM
How do I display currency from a My sql table?

I have a for that submits the numbers to a MySQL database. I am not cler on what settings to make the database and what code or and script I need ot alter to display the numbers as: e.g. "20 000" ?

Hans Kilian
July 11th, 2004, 11:08 AM
echo number_format($number, 0, ',', ' ');

http://dk2.php.net/number_format