The line from the recordset seletion that has $totalRows_SOMETHING has a count of how many rows are in the recordset. all you would need is a counter that counts up for each record that is displayed and then checks if it is equal to the totalRows - only display the when it is not equal.
I hope that helps. :)