Ver original$x = 0;$y = 1;while ($row = mysqli_fetch_array($results)) { $duplicated = $row['titulos'] ." $y<br>"; $x++; if ($x % 2 == 0) { $y++; }}