title: Comparing a value with previous row in a while loop?
body: <p>I'm a newbie in PHP, so forgive me for a basic question.</p>
  
  <p>In a <code>While</code> statement, is there a way to know if a value in a row is equal to a value in the previous row?</p>