阅读背景:

MySQL在整数之前不存储0(字段被设置为文本(或varchar))

来源:互联网 

I'm submitting a form via HTML into a POST PHP page, which is then storing that info into the MySQL database. One of the input fields is a number field that can start with zero. I've set the HTML data type to text on the form and tried setting the MySQL data type to text and varchar, and both times the zero before the integer gets dropped. I'm not quite sure what I'm doing wrong.I'm submitting a form via HTML into a POST PHP




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: