Zeropadding

From: Date: Tue, 14 May 2002 20:23:48 +0000
Subject: Zeropadding
Groups: php.db 
Request: Send a blank email to php-db+get-19182@lists.php.net to get a copy of this message
Hi, I use MySQL where I have a table. One of the fields is an INT(6), which I zeropad. When I try to get the number to a variable it doesn't contain all the numbers. If I give it a value of 59 I extract 59 and not 000059. Is there a way I can get the hole number? Regards, Morten

« previous php.db (#19182) next »