I don't think I can really explain more without just giving you the answer, though the name of the variable I mentioned explicitly in my previous post should surely give you a big clue.
Printable View
This is used when a search is being performed. It has a defined thing that it is looking for and looks at one line of database code at a time. When it is done looking in that line it adds one to the location of where it should be searching so that it moves to the next line. Is that it? I think it is.
It should be fairly clear what that search is, though, and probably what your potential employers want to know.
From only the code posted, there's no definite sign of database involvement: the row from the function, getrow, could be from some other source.Quote:
It has a defined thing that it is looking for and looks at one line of database code at a time.
That's the basis of iteration - moving from one position to the next - but there's more obvious things in the code: the comparison, subsequent assignment, and what that implies for the value of a particular variable are significant.Quote:
When it is done looking in that line it adds one to the location of where it should be searching so that it moves to the next line.