What I'm trying to do is output rank using PHP by checking if the rating/number of votes has changed (from the last loop). I've been told I can do this by way of current/previous logic in a loop, but I don't know how to do this. Does anyone have an answer?

http://www.sitepoint.com/forums/showthread.php?t=620653 - see this thread for my original question.