query( $query . " ORDER BY created_at DESC LIMIT " . getLimit( $current) ) ; if ( $mysqli_query->num_rows > 0 ){ $status = '1' ; $message = 'Success.' ; $list = [] ; while ( $row = $mysqli_query->fetch_assoc() ){ $row['documentation_message'] = html_entity_decode( stripslashes( $row['documentation_message'] ) ) ; $list[] = $row ; } $data = [ 'list' => [ "current_page" => $current, "data" => $list, "from" => '', "last_page" => $pagination['last_page'], "next_page_url" => '', "path" => '', "per_page" => $limit, "prev_page_url" => '', "to" => '', "total" => $pagination['total'] ], 'file_path' => PATH.'uploads/Documentation/' ] ; } } require( $require_sub.'footer.php' ) ; ?>