Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Braulio Lumbreras #1
Commas Missing.
Hello everyone,
I have a table with a column for real estate property values. The format of
the column is float(8,2). When the results are presented on the web page I
get $155000.00 versus $155,000.00. How do I go about getting the comma in
the values. I am using a MySql table.
Thanks in advance, Braulio.
Braulio Lumbreras Guest
-
Removing Commas From a field
Hello I have 2 fields that are name the same in different tables. One is called : ProductGrade.GradeID and the other is Parts.GradeID. now my... -
Counting commas in string
Does ColdFusion have a function that counts a certain character in a string? -
DataFormatString shows currency, but without commas
Hi, How do I get the commas into my datafield if it is a currency. I am dealing with hundred thousands, so it would really help out the user if... -
Printing Commas in Large Number
I have some very large numnbers EX. 1234567890. I'd like to print the number with commas. EX: 1,234,567,890. I didn't see anything builtin in printf... -
Convertig integers to dollars with commas and decimals
I have some variables that are supposed to display in dollars. While the value of the variable may be an interger, such as 1290 I would like it to... -
rob::digitalburn #2
Re: Commas Missing.
Well, mySQL doesn't store the comma (as far as I know), so you'll need to
add one yourself using PHP (or whatever language you're using). I suspect
that there's a function for doing just this, but it would be very easy with
a bit of string manipulation.
Braulio Lumbreras wrote:> Hello everyone,
>
> I have a table with a column for real estate property values. The
> format of the column is float(8,2). When the results are presented
> on the web page I get $155000.00 versus $155,000.00. How do I go
> about getting the comma in the values. I am using a MySql table.
>
> Thanks in advance, Braulio.
rob::digitalburn Guest
-
Diego Nunes #3
Re: Commas Missing.
There's a function called currency (or with a name that contains
"currency", like formatCurrency or something...), if you're using PHP.
But, as was said, some string functions do it easily.
[]s
--
~~ ~
diego nunes
web engineer
~ ~~
Diego Nunes Guest
-
Braulio Lumbreras #4
Re: Commas Missing.
I looked up in my PHP and MySql book and was unable to find the function.
Does anyone know what the function is named ?
Any help will be appreciated, Braulio.
"Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
news:cdab09$g3a$1@forums.macromedia.com...> There's a function called currency (or with a name that contains
> "currency", like formatCurrency or something...), if you're using PHP.
> But, as was said, some string functions do it easily.
>
> []s
>
> --
> ~~ ~
> diego nunes
> web engineer
> ~ ~~
>
>
Braulio Lumbreras Guest
-
rob::digitalburn #5
Re: Commas Missing.
Try searching [url]www.php.net[/url].
Braulio Lumbreras wrote:> I looked up in my PHP and MySql book and was unable to find the
> function. Does anyone know what the function is named ?
>
> Any help will be appreciated, Braulio.
>
> "Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
> news:cdab09$g3a$1@forums.macromedia.com...>> There's a function called currency (or with a name that contains
>> "currency", like formatCurrency or something...), if you're using
>> PHP. But, as was said, some string functions do it easily.
>>
>> []s
>>
>> --
>> ~~ ~
>> diego nunes
>> web engineer
>> ~ ~~
rob::digitalburn Guest
-
Diego Nunes #6
Re: Commas Missing.
Errr.. sorry for the wrong name, I think "currency" is a function
from another language. Anyway, I found "money_format" that "Formats a
number as a currency string" (its in the manual).
I hope it helps you.
[]s
--
~~ ~
diego nunes
web engineer
~ ~~
Diego Nunes Guest
-
Braulio Lumbreras #7
Re: Commas Missing.
I found the function at php.net. How do I go about addding this function to
my web page using DreamWeaver ?
<?php
$number = 1234.56;
// english notation (default)
$english_format_number = number_format($number);
// 1,234
Thanks in advance, Braulio.
"Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
news:cdbigs$ma0$1@forums.macromedia.com...> Errr.. sorry for the wrong name, I think "currency" is a function
> from another language. Anyway, I found "money_format" that "Formats a
> number as a currency string" (its in the manual).
> I hope it helps you.
>
> []s
>
> --
> ~~ ~
> diego nunes
> web engineer
> ~ ~~
>
>
Braulio Lumbreras Guest
-
Diego Nunes #8
Re: Commas Missing.
Go to "code mode" and be happy ;)
[]s
--
~~ ~
diego nunes
web engineer
~ ~~
Diego Nunes Guest
-
Braulio Lumbreras #9
Re: Commas Missing.
I get the error below on the web page when I add the code.
Parse error: parse error in
/home/swisherm/public_html/residentialhouseforsalelistingstest.php on line
115
The code is shown below.
<td>$<?php echo
$row_residential['Price'];english_format_number='Price'?> </td>
Please advise, thanks in advance. Braulio.
"Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
news:cdc75i$ajb$1@forums.macromedia.com...> Go to "code mode" and be happy ;)
>
> []s
>
>
> --
> ~~ ~
> diego nunes
> web engineer
> ~ ~~
>
>
Braulio Lumbreras Guest
-
Braulio Lumbreras #10
Re: Commas Missing.
Thanks Diego and Rob. I got it going.
Thanks for your help, Braulio.
"Braulio Lumbreras" <brauliolumbreras@websitemedia.net> wrote in message
news:cdcm2c$m7m$1@forums.macromedia.com...> I get the error below on the web page when I add the code.
>
> Parse error: parse error in
> /home/swisherm/public_html/residentialhouseforsalelistingstest.php on line
> 115
>
> The code is shown below.
>
> <td>$<?php echo
> $row_residential['Price'];english_format_number='Price'?> </td>
>
> Please advise, thanks in advance. Braulio.
>
>
> "Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
> news:cdc75i$ajb$1@forums.macromedia.com...>> > Go to "code mode" and be happy ;)
> >
> > []s
> >
> >
> > --
> > ~~ ~
> > diego nunes
> > web engineer
> > ~ ~~
> >
> >
>
Braulio Lumbreras Guest
-
rob::digitalburn #11
Re: Commas Missing.
No worries ;)
Braulio Lumbreras wrote:> Thanks Diego and Rob. I got it going.
>
> Thanks for your help, Braulio.
>
> "Braulio Lumbreras" <brauliolumbreras@websitemedia.net> wrote in
> message news:cdcm2c$m7m$1@forums.macromedia.com...>> I get the error below on the web page when I add the code.
>>
>> Parse error: parse error in
>> /home/swisherm/public_html/residentialhouseforsalelistingstest.php
>> on line 115
>>
>> The code is shown below.
>>
>> <td>$<?php echo
>> $row_residential['Price'];english_format_number='Price'?> </td>
>>
>> Please advise, thanks in advance. Braulio.
>>
>>
>> "Diego Nunes" <dnunes.spam.please@gmail.com> wrote in message
>> news:cdc75i$ajb$1@forums.macromedia.com...>>> Go to "code mode" and be happy ;)
>>>
>>> []s
>>>
>>>
>>> --
>>> ~~ ~
>>> diego nunes
>>> web engineer
>>> ~ ~~
rob::digitalburn Guest



Reply With Quote

