HighDots Forums  

database question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss database question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ulitasch
 
Posts: n/a

Default database question - 07-28-2004 , 06:02 AM






I wonder how to make the price-database-table, when I have prices like 100.000,
200.000
but also 2.200.200 (2 million)?>
This it what I use, but I cannot write 2.200.200 with this, only 2000.000 not
even 2 000.000:
`price` float(10,3) NOT NULL default '0.000',
Thanks for helping me.



Reply With Quote
  #2  
Old   
Paul Whitham TMM
 
Posts: n/a

Default Re: database question - 07-28-2004 , 07:13 PM






You need to store the values in the database without any formatting and then
apply the formating to the number when it is brought to the page.

--
Regards

Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Ultradev/Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia

"Ulitasch" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I wonder how to make the price-database-table, when I have prices like
100.000,
200.000
but also 2.200.200 (2 million)?
This it what I use, but I cannot write 2.200.200 with this, only 2000.000
not
even 2 000.000:
`price` float(10,3) NOT NULL default '0.000',
Thanks for helping me.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.