Okay, basic premise here...

Code:


For each $Student in $SqlArray
UserAccount($Student)
HomeDir($Student)
Next

Function UserAccount($Student)
;This is the UDF to create the student account
EndFunction

Function HomeDir($Student
;This is the UDF to Create Home Directory's
EndFunction




Search the UDF Forum for code that has already been written to cut down on your time.

Within each of the UDF's do your logging to a file so that it will allow you to know what happened when.

For $SQLArray[], use one of the UDF's to read the information that you want into the array. You most likely will need something that supports MultiDimensional array's so that you can use just one array to do it all.

Each of the UDF's may have to call other UDF's to complete that step, but most of them should be out there already.

Now on the other hand if you want to completly hand code your own script, still look at the UDF's and ask questions, we will be more than happy to help out.
_________________________
Today is the tomorrow you worried about yesterday.