Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Auto Casting/Auto Correct

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Auto Casting/Auto Correct

Postby WildTurkey » Mon Jul 08, 2013 1:53 am

I have a PHP page that i did not write.
the code i wish to change corrects decimal numbers to whole numbers eg 1.5 becomes 15, 0.1 becomes 1.
The page is linked to MYSQL database. I have altered the information accepted into the field in the database to allow decimal places, but the page itself correct itself before even submitting to the database.
The field is for Quantity

I'm new to PHP so any help would be much appreciated.
WildTurkey
New php-forum User
New php-forum User
 
Posts: 1
Joined: Fri Jul 05, 2013 6:52 pm

Re: Auto Casting/Auto Correct

Postby johnj » Mon Jul 08, 2013 2:50 am

please post the code
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 4 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.