I need to add line break like </div>
to end if only 2 rows on PAGE (not every 2 rows) (not in mysql).
My Code:
$results_per_page = 12;
if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; };
$start_from = ($page-1) * $results_per_page;
$sth = $db->prepare("SELECT * FROM users WHERE active='1' ORDER BY vip DESC, date DESC LIMIT $start_from, ".$results_per_page);
$sth->execute();
while($answer=$sth->fetch()){ if (only 2 rows on PAGE) { blabla } }