Need help for UNSIGNED ZEROFILL Issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nightrid3r
Forum Newbie
Posts: 1
Joined: Wed Sep 29, 2004 7:33 pm

Need help for UNSIGNED ZEROFILL Issue

Post by Nightrid3r »

Hi Im not a php pro i learn on myself most of the stuff and i got to learn much of simple php.

Now my little problem is the following : I have 2 db's on a web site one the unique id as auto increment no values no UNSIGNED ZEROFILL....so when its time to call row its easy because the upladed files cary the same #...my problem is that the second db as UNSIGNED ZEROFILL and that when i call my files using ex- $id2 i get the good num but a bunch a 000 infront wich is normal but now all my other scripts i have created cant show the files cause i dont know how to remove the UNSIGNED ZEROFILL on a query so only the value shows and i dont have to change the forms that up the files with id but no zerofill .... how do i get around this how to display files and remove the 0000 with out changing the db current seetings....

Hope im clear.... Hope its an easy command i missed out and one of you can help me out. I've been searching on the web for this havent found anything. Thanks in advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm a bit foggy on your english, but I think you might want to play with [php_man]intval[/php_man]()
Post Reply