I am making a website and in this site, I have a simple paging system in index.php with the following code:
<?php
function getGet( $key ){
return isset( $_GET[ $key ] ) ? $_GET[ $key ] : null;
}
$pg = getGet('pag');
if( is_file( 'Paginas/'.$pg.'.php' ) )
include 'Paginas/'.$pg.'.php';
else
include 'Paginas/home.php';
I have a page called studies that stays in this pagination above and inside it (page studies), I have a paging system that passes more parameters $_Get
, like Id, to generate pagination by Count equal to this:
Does anyone know how to pass INDEX?PAG=ESTUDOS
and within study the paging id? I think it's something like this index?pag=estudos&1
but I do not know how to do it.