Re: INT Field in mysql display without .00
| From: | Adam Voigt | Date: | Wed, 16 Jul 2003 14:51:05 +0000 |
| Subject: | Re: INT Field in mysql display without .00 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155436@lists.php.net to get a copy of this message | ||
$var = number_format($var,0);
On Wed, 2003-07-16 at 10:42, fkeessen@planet.nl wrote:
> Hi All,
>
> I think it's a simple one but... Very hard for me!
>
> I've got prices in MYSQL. Field is formatted as INT(5,2).. So output is for example 100.00
> . Now i want to ECHO the field as 100.. How to achief this one? Because when i'm echo'ing
> the field is shows up as 100.00 .
>
> Thanks for the help!
>
> Regards,
>
> Frank
>
>
> ______________________________________________________________________
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group