manu11
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
pagination problem
in Editor Help (PhpStorm, VS Code, etc)
Posted
Hi,
I would like to use a button (always the same - a little square) instead of the
1 | 2 | 3 | 4 | .... for pagination.
I'm not sure how difficult it is.
I have this code for displaying like 1 | 2 |3...
-----------------------------------------------
<?php
for ($i=0; $i <= $totalPages_RSout; $i++) {
$TFM_PagesEndCount = $i + 1;
if($i != $pageNum_RSout) {
printf('<a href="'."%s?pageNum_RSout=%d%s", $currentPage, $i, $queryString_RSout.'">'.$TFM_PagesEndCount."</a>");
}else{
echo("<b>$TFM_PagesEndCount</b>");
}
if($i != $totalPages_RSout) echo(" | ");
}
?>
----------------------------------------
I could i change it in a way that i could use a button?
Thanks.