thanks a lot, i'm greatful for your help, this code is what i was looking for.
but maybe someone can explain it a bit so that i understand it and not just copy/paste the code, 'cause i'm gonna have to insert this number into the database and if i understand it'll be easier than asking how to do it each time i have something similar to do.
thanks a lot!