2
Good morning!
I am building a system with php/sql that works with letters which in a certain part need to generate a 6-digit sequential code that will be for each letter to be sent.
letter 1 must have the code "000001", letter 2: "000002", letter 3: "000003", and so on.
I have saved in sql only the last numbers like 1,2 and 3. How do I add the other 0’s to the left limiting to the maximum number of 6 digits? Putting 5 0’s as 000001 or even 3 as 000143 if applicable.
Whoa, thanks a guy!
– lucas gabriel