The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
|||
|
|||
![]()
Try TYPE_UNUM instead of TYPE_UINT.
|
#3
|
|||
|
|||
![]()
Thanks, but same results: missing zeros upfront. Temporary I removed the zero filled, but that is really no good for me.
|
#4
|
|||
|
|||
![]()
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. |
#5
|
|||
|
|||
![]()
problem is I am getting that value 0096071 from somewhere else, I am not creating it.
|
#6
|
|||
|
|||
![]()
Just store it without the zerofill.
|
#7
|
|||
|
|||
![]()
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.
|
#8
|
|||
|
|||
![]()
You would not need to count digits, simply format the number with sprintf().
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|