1) { $pagination .= "
    "; if ($page > $counter+1) { $pagination.= "
  • prev
  • "; } if ($lastpage < 7 + ($adjacents * 2)) { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "
  • $counter
  • "; else $pagination.= "
  • $counter
  • "; } } elseif($lastpage > 5 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "
  • $counter
  • "; else $pagination.= "
  • $counter
  • "; } $pagination.= "
  • ...
  • "; $pagination.= "
  • $lpm1
  • "; $pagination.= "
  • $lastpage
  • "; } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "
  • 1
  • "; $pagination.= "
  • 2
  • "; $pagination.= "
  • ...
  • "; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "
  • $counter
  • "; else $pagination.= "
  • $counter
  • "; } $pagination.= "
  • ...
  • "; $pagination.= "
  • $lpm1
  • "; $pagination.= "
  • $lastpage
  • "; } //close to end; only hide early pages else { $pagination.= "
  • 1
  • "; $pagination.= "
  • 2
  • "; $pagination.= "
  • ...
  • "; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "
  • $counter
  • "; else $pagination.= "
  • $counter
  • "; } } } //next button if ($page < $counter - 1) $pagination.= "
  • next
  • "; else $pagination.= ""; $pagination.= "
\n"; } ?>
Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined array key "q" in /home/televisions123/public_html/aoneappz.com/posts.php on line 6

Warning: Undefined variable $start in /home/televisions123/public_html/aoneappz.com/posts.php on line 9

Warning: Undefined variable $limit in /home/televisions123/public_html/aoneappz.com/posts.php on line 9

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 in /home/televisions123/public_html/aoneappz.com/posts.php:10 Stack trace: #0 /home/televisions123/public_html/aoneappz.com/posts.php(10): mysqli_query() #1 /home/televisions123/public_html/aoneappz.com/index.php(54): include('/home/televisio...') #2 {main} thrown in /home/televisions123/public_html/aoneappz.com/posts.php on line 10