Hello.
I am paginating a table using blank application, in order to display page’s records a used $_GET variable as below validation when the page is not specified then show the first one:
$page = 1;
if (isset($_GET[‘page’])){
if (is_numeric($_GET[‘page’])){
$page= (int) $_GET[‘page’];
}
}
In the navigation var, I build the links via: sc_make_link(MY_APP, pagina=$page). But it does not work because the valued is never set for GET method.
In the other hand, if I do:
$page = 1;
if (isset([page])){
if (is_numeric([page])){
$page= (int) [page];
}
}
the application always ask for [page] value in order to initialize it, of course I won’t let the user to do that, because it should be set 1 in someway but never manually. Do you guys have some advice? Thank you in advance.