User ID is a 4 or 5 digit number.
What I want to do is write some code that runs the "getUserDetails()" function repeatedly but each time it does it with asequentially different user ID... so numerically starts at 0001 and runs up to 20000
The returned data for each user will then be entered into a database table before moving on to the next user ID and so on until it reaches 20000
Can anyone suggest a way of doing this?