Originally posted by logisticdesigns
Thanks for the sacrasim, but I'm not building a database!!!
Still need help though!
LD
That's a relief; if you were building a database I would be scared to use it.
You obviously did not read the posts:
decimal; keep the .0 (solution given there, [font=monospace]number_format($num,2)[/font])
Changing 9.99 to 9,99 (solution given there, [font=monospace] result = number_format(14.99+5.00, 2, '.', '');[/font])
format float as currency (solution given there, [font=monospace]$number="$".number_format($number, 2, ".",","); [/font])
If you thought databases were relevant to any of those questions (which I had taken the effort that you didn't bother with to actually look for) then there is a good chance you never actually bothered to read them and learn anything from them. Every one of them suggested using [man]number_format[/man] and every one of them gave explicit examples of its use. Instead, you read the first six words of the first post, fired off "thanks for the sacrasim[sic], but I'm not building a database!!!" and sat around with your thumb inserted for the next (at least) three and a half hours waiting for someone to spoon-feed you with (you'll note, if you read far enough) exactly the same code as had been given in one of the threads you had been given a link for.
None of this speaks well for your abilities as a programmer. Which is why I'd be scared to use any database (or website) that you built.
[PS: You forgot to mark the thread as "Resolved", also.]