Hello All,
I'm trying to create some code that will create a new folder depending on the ID that is currently being added to the database.
What happens at the moment is a new ID is generated which in turn is job reference.
When this is added to the database a folder is created with a prefix of this ID number and a 20char test specified in a text field by the user.
Obivously this number is creeping up .
What I am trying to achieve is this:
If the ID = 57
Then a folder is create called 1 - 500 (and ignore if one has already been created, which it should have at ID number 1)
When the ID Number 501 comes along another new folder is create called 501 - 1000 etc etc.
The idea is not to have 3000+ folders in just one folder making it look a bit messy and lengthy to look through.
Does anyone have any suggestiong or solution to this?
Many thanks in advance.
I'm trying to create some code that will create a new folder depending on the ID that is currently being added to the database.
What happens at the moment is a new ID is generated which in turn is job reference.
When this is added to the database a folder is created with a prefix of this ID number and a 20char test specified in a text field by the user.
Obivously this number is creeping up .
What I am trying to achieve is this:
If the ID = 57
Then a folder is create called 1 - 500 (and ignore if one has already been created, which it should have at ID number 1)
When the ID Number 501 comes along another new folder is create called 501 - 1000 etc etc.
The idea is not to have 3000+ folders in just one folder making it look a bit messy and lengthy to look through.
Does anyone have any suggestiong or solution to this?
Many thanks in advance.