Hi,
I have a table that I hold the month and day of a person's birthday. I declared these columns as a tinyint. However, tinyint seems to drop the leading zero:
07 becomes 7
Is there a way around this or should I declare my column differently?
Why do you need the zero?
Hmm... that is a fair question 🙂
The reason is for output. It looks nice fromated that way, my tables lign up better.
hey webgod,
then why aren't you checking if the number is smaller then 10 and if, echo 0...
good luck! greetings, tijger