Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 14th, 2004, 04:52 PM
nemo nemo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Long Island, NY USA
Posts: 24 nemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Currency into MySql

I'm in the process of building a Web Based club member database using PHP and MySql and most of the fields are simple text fields no problem.

I've come up to a sumble here. The club collects dues once a year and allows them to be paid in 4 quartly installments. I want to put in the amount of dues received to date, but I want to put them in NOT as text so I can do some math on the amount and calculate how much is owed. When I try and set the MySql data fields to INT it rounds the numbers to the nearest whole number if I set it to FLOAT it only give me one decimal place. Is there a way to put currency type data into MySql such as 10.50 and have it retrieved as 10.50 ???
What field type should be specified?

Thank you
Have a great day
-Jim

Reply With Quote
  #2  
Old March 14th, 2004, 05:06 PM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 3
Send a message via Yahoo to nazly
RE: Currency into MySql

http://www.mysql.com/doc/en/Column_types.html

Reply With Quote
  #3  
Old March 14th, 2004, 06:08 PM
nemo nemo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Long Island, NY USA
Posts: 24 nemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Currency into MySql

Thank You for the link, I think I found what I was needing.

Have a great day
-JIm

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Currency into MySql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway