Re: [PHP] Displaying output from MySQL

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote:


Hi,

Not sure if this is a PHP of a MySQL question, so I am sending it to both
groups. Basically I have a list of numbers with two decimal places in the
MySQL database, but I only want to display some of them with the decimal
points.


Check out number_format() in the manual (under Mathematical Functions).

HTH
Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Displaying output from MySQL

2002-12-11 Thread Beauford.2002
Yep, pretty close to what I needed. Had to do a bit of tweaking, but
basically was able to get the results I needed.

Thanks


- Original Message -
From: Chris Hewitt [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 5:11 AM
Subject: Re: [PHP] Displaying output from MySQL


 Beauford.2002 wrote:

 Hi,
 
 Not sure if this is a PHP of a MySQL question, so I am sending it to both
 groups. Basically I have a list of numbers with two decimal places in the
 MySQL database, but I only want to display some of them with the decimal
 points.
 
 Check out number_format() in the manual (under Mathematical Functions).

 HTH
 Chris



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Displaying output from MySQL

2002-12-10 Thread Beauford.2002
Hi,

Not sure if this is a PHP of a MySQL question, so I am sending it to both
groups. Basically I have a list of numbers with two decimal places in the
MySQL database, but I only want to display some of them with the decimal
points.

i.e.

70 (not 70.00)
87
51.5
46.75
12
29
5.5
-1
45

I know it's probably a weird request, but any thoughts on how one would do
this.

TIA



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php