I have a problem with the way number_format() is displaying
information from a database. The numbers are 6-figure prices. When
they are listing as 150900 in the database the number_format($price)
displays the price as 150,900. However if it is 150000, the
number_format($price) truncates it to 150. Is there an attribute I
need to add to this code to prevent this kind of error?

Thank you.
Suzi





Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to