# Currency & PHP

**URL:** <https://forum.kirupa.com/t/currency-php/57218>\
**Category:** programming\
**Created:** [July 11, 2004, 1:53pm UTC](https://forum.kirupa.com/t/currency-php/57218 "2004-07-11T13:53:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![opel](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/opel/32/199_2.png) [@opel](https://forum.kirupa.com/u/opel)\
**Post date:** [July 11, 2004, 1:53pm UTC](https://forum.kirupa.com/t/currency-php/57218/1 "2004-07-11T13:53:51Z")

</div>

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” ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 11, 2004, 2:08pm UTC](https://forum.kirupa.com/t/currency-php/57218/2 "2004-07-11T14:08:22Z")

</div>

echo number\_format($number, 0, ‘,’, ’ ');

[http://dk2.php.net/number\_format](http://dk2.php.net/number_format)
