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?
m2ewAsked:
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
0
Loganathan NatarajanLAMP DeveloperCommented:
what is the database type which you insert?
0

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
V4nP3rs13Commented:
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
0
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.
0
m2ewAuthor Commented:
Converted column from int to varchar and it worked
0
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
PHP

From novice to tech pro — start learning today.