php form post to database

I'm updating a database from form post via php. However, I'm getting a error when 0 (aka. zero) is the value, and its being dropped from the value being posted to the database. Is this a result of my table formatting in mysql?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris WongCommented:
use the isset() instead
Loganathan NatarajanLAMP DeveloperCommented:
what is the database type which you insert?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Can we see the code? Is the code for getting the value like this:
$fieldOne = addslashes($_POST['fieldName']);

and the mysql query:
mysql_query("UPDATE table_name SET some_column = '$fieldOne' WHERE id = 'id_number'");

I hope this will solve the problem
m2ewAuthor Commented:
I'm still learning mysql, the query is correct. Fixed the issue though, the issue was that field was int not varchar.  Now that I have switched, not problems with updating. Thanks for the hint logudotcom.
m2ewAuthor Commented:
Converted column from int to varchar and it worked
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.