Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What type of number field in a MySQL table accepts commas...

Status
Not open for further replies.

garethashton

Programmer
May 13, 2001
19
0
0
US
I have a MySQL table set up on my server. I have a php script that sends data to the table.
One of the fields is for holding money values (11,000).
Right now it is set up with INT as the type.
If I type 11000, then it reads the number correctly, but if I type 11,000, then it reads the number as 11!

I know how to overcome this in Access, but does anyone know the TYPE I must use to accept a number (so it can be used in calculations), but also contain a , (comma) in MySQL??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top