Can anyone help me for my problem. I am new in MySQL.
I want to create a field on clients table with this :
id int(8) zerofill not null,
but when i use this field on my php script and fill in the 00101010 value, it shows 00000000 not 00101010
So what the type of the field i must use if i want to fill in the field numbers that have 00 value at front (e.g. 0010101010)
I also tried : id varchar(8) not null,
but the result was 101010 not 00101010 😕
i already tried to change the type to char but it only save for 1 character only. If I change to 10 character :
id char(10) not null,
the result become : id varchar(10) not null, on mySQL
I need to get the 'id' works for number like 00101010 because i use 00 at front as year 2000 identity
Thanks