Saturday, July 28, 2012

Numbers cutting off after comma

Hi,

I have an form and one of the inputs is price. So if someone enters 1,500 then for some reason it's cutting off the numbers after the comma. I looked at the print_r for $this->request->data and it shows the price as 1,500. Any ideas why it's cutting it off once it gets to the MySQL database. I have the field as a varchar. Should I make it an int?

Steven

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: