Just fixed an issue in a plugin where the task is to pick the last line in a result set from a database query. Im not shure which is the best way to pick the last row. It feels like overkill to make a while loop to run through all rows, just to get to the last one.
Any better way to do this than:
Code:
while (incrementRows < numberOfRowsInResultSet) {
dbi_nextrow(resultSet)
++incrementRows
}
Thx
/Lt.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.