$db = new SQLite3('log.db');
if (isset($_REQUEST['page'])) {
$page = $_REQUEST['page'];
if(isset($page) && is_numeric($page)) {
$start = $page_view * ($pager - 1);
$sql = 'SELECT * FROM content LIMIT ' .$start. ', ' .$page_view;
$count_sql = 'SELECT COUNT(*) FROM content';
$counts = $db->querySingle($count_sql);
$max_page = ceil($counts / $page_view);