Reaper0167 Posted July 9, 2009 Share Posted July 9, 2009 in my php script that uploads a four digit number to mysql, I am having problems with any number that starts with '0'. If I upload '0152' and then check my database, it says 152. How can I overcome this? Quote Link to comment Share on other sites More sharing options...
allenskd Posted July 9, 2009 Share Posted July 9, 2009 You must attribute the column to ZEROFILL in phpmyadmin it would be UNSIGNED ZEROFILL Quote Link to comment Share on other sites More sharing options...
Reaper0167 Posted July 9, 2009 Author Share Posted July 9, 2009 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.