I can get this to work just fine:
?php
$number = 23999.39;
print $;
print number_format($number, 2);
?
Comes out $23,999.39
I'd like use the number_format() thingie on an array returned from a
mysql_query.
My current program snippet looks like:
$res =
Bill Whitacre wrote:
printf(trtd {$thearray[org]} /td
td align=right {$thearray[COUNT(*)]} /td
td align=right $ {$thearray[cost]} /td/tr);
If I replace
{$thearray[cost]}
with
number_format({$thearray[cost]}, 2)
Although this is a MySQL mailing list and your problem is
Bill Whitacre wrote:
I can get this to work just fine:
?php
$number = 23999.39;
print $;
print number_format($number, 2);
?
Comes out $23,999.39
I'd like use the number_format() thingie on an array returned from a
mysql_query.
My current program snippet looks like:
Nuno Pereira wrote:
To do date change the first line from
printf(trtd number_format({$thearray[cost]}, 2) /td
to
printf(trtd .number_format({$thearray[cost]}, 2). /td
I think you mean:
print( trtd . number_format( $thearray['cost'], 2 ) . /td );
As stated by a previous poster to this
Hello everyone,
I'm not sure if this is the proper place to be asking this question as I
believe it is more of a question on how to traverse through php arrays and such
but it is using a mysql_query function. So if this not the place pleace don't
read any further and ignore and/or delete this
-
From: Ryan McDougall [EMAIL PROTECTED]
To: mysql [EMAIL PROTECTED]
Sent: Sunday, January 19, 2003 6:47 PM
Subject: A mysql php question
Hello everyone,
I'm not sure if this is the proper place to be asking this question as
I
believe it is more of a question on how to traverse through
Does anyone have some simple sample code using php to access a mySQL database?
Could you post it or send someit to me please?
Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881 6073
Help Wanted. Seeking Telepath...
You Know where to apply.
PM
Subject: mysql php question
Does anyone have some simple sample code using php to access a mySQL
database?
Could you post it or send someit to me please?
Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881 6073
Help Wanted. Seeking Telepath...
You Know where to apply
gotcha, thanks, which manual is that?
Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881 6073
Help Wanted. Seeking Telepath...
You Know where to apply.
[EMAIL PROTECTED] 06/24/02 01:39PM
in the php manual in the section of functions about mysql, it has a few
examples.
SNIP
The one at www.php.net
-Original Message-
From: Taylor Lewick [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: mysql php question
gotcha, thanks, which manual is that?
Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881
Taylor ...
Check out ...
http://hotwired.lycos.com/webmonkey/databases/tutorials/tutorial4.html
... or ...
http://vtwebwizard.com/tutorials/mysql/
- Original Message -
From: Taylor Lewick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 1:16 PM
Subject: mysql php
11 matches
Mail list logo