Guest User

Untitled

a guest
Jun 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $get = mysql_query("...");
  2. $previous = '';
  3. while ($row = mysql_fetch_assoc($get)) {
  4. $current = $row['...'];
  5. if ($current == $previous) {
  6. // do stuff
  7. }
  8. $previous = $current;
  9. }
Add Comment
Please, Sign In to add comment