ok - wiec tak:
na poczatek wrzucasz do $sSearchSQL twoje zapytanie wyszukujace (czyli generalnie wszystko co masz po slowie select w Twoim zapytaniu), czyli:
$sSearchSQL = ' from arena_news';
potem wklejasz to, co Ci poslalem
i jak dasz pod tym
to masz tablice z 6 rekordami z bazy - chcesz miec wiecej, to zmien wszystkie liczby 6 na cos innego w tym kodzie co Ci poslsalem - np na 10 (wtedy bedzie 10 wynikow na strone) lub na zmienna
i tu masz funkcje db_select ktorej uzywam do zapytan do bazy w moim kodzie - wrzuc ja na poczatku skryptu:
function dbSelect($sQuery) {
$aResults[] = $aResult;
}
}
return $aResults;
}
i jak np po tym odpalisz Twoj skrypt i dodasz &Page=2
to masz kolejne 6 czy 10 rekordow z bazy
tu masz jeszcze kodzik ktory ladnie Ci wysiwetli strony:
if ($iQty > 6
&& !empty($iQty)) { $bPager = true;
}
###=====|Pager|=====###
if ($bPager == true) {
if ($iQty > 1) {
$iWidthRecounted = ($iQty+1) * 55;
<div class="Clear" style="height: 15px;"></div>
<div style="margin: 0 auto; width: '. $iWidthRecounted .'">
<div style=" font-weight: bold; text-align: center;">';
for ($x=0, $y=$iQty; $x<$y; $x++) {
<div class="BuyNowButton" onclick="document.location.href=\'id,ProductList';
if ($_POST['ShowOnly'] == 'Featured') echo ',ShowFeatured,true'; echo ',Page,'. ($x+1) .'.html\';" style="width: 55px; float: left;"> <div class="GrayButtonLeft"></div>
<div class="GrayButtonCenter" style="padding-top: 1px; height: 21px;">
<a href="java script: void(0);" style="text-decoration: none; text-align: center; color: black; font-weight: bold; cursor: pointer; text-shadow: 1px 1px 1px gray;"> '. ($x + 1) .' </a>
</div>
<div class="GrayButtonRight"></div>
</div>';
}
</div>
<div style="clear: both; height: 10px;"></div>
</div>';
}
}
}
?>