Posted by Erlend Klakegg Bergheim on 10/10/75 11:38
dummie skrev:
> I've got brain free at the moment.
>
> But how do I convert an integer into a decimal ie
> 1 beomes 1.00
>
> This has come about because when I converted my Access database into
> MySQL it change all the decimal valvues into integers.
Converting in PHP:
$float = (float) $int;
Make also sure you use the right type of field i the database.
--
Vennlig hilsen
Erlend Klakegg Bergheim
Navigation:
[Reply to this message]
|