![]() |
unsigned zerofill and clean_array_gpc
I have a field in database set as INT (7) unsigned zerofill
The value in there is "0096071". When I browse to Quote:
PHP Code:
How can I make it read the zeros also? |
Try TYPE_UNUM instead of TYPE_UINT.
|
Thanks, but same results: missing zeros upfront. Temporary I removed the zero filled, but that is really no good for me.
|
Storing values with zerofill is not really good coding practise.
Zerofill is a display attribute, not something you want to store and use internally in your scripts. |
problem is I am getting that value 0096071 from somewhere else, I am not creating it.
|
Just store it without the zerofill.
|
That's what I ended up doing and when I do a call back to other site I count the digits and simply place the missing zeros in front of it so the link matches.
|
You would not need to count digits, simply format the number with sprintf().
|
All times are GMT. The time now is 10:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|