Pagination Version 2 (ready to use PHP MySQL)

Very easy to use simply add the class, and edit setting:

$page = $_REQUEST["page"];
$alamat_pag = "http://elkaff.com/?m=Alumni"; // Full adress your PHP script
$adjacents = 3; // do not change if you do not know
$tabel="sample_tabel"; // table database form MySQL
$where=""; // where condition, optional
$order="ORDER BY `date` DESC, `name`"; // order condition, optional
$limit = 10; // set limit per page
include "pagination.php"; // include the class
$no=$start+1; // the number, if you want it to diplay, optional
while($ro = mysql_fetch_array($portfolio)) {
echo
$no." ";
echo
$ro[nama]."
"
;
}

echo
"Total: $total_pages
"
;
echo
$pagination;


The code is on: http://www.nusansifor.com/f/showthread.php?t=101

No comments: