The following code is a quick and dirty example of php/mysql pagination but if you are familiar with CSS, you can easily style the way the page navigation looks.
if(!empty($_GET["start"])){
$start = $_GET['start'];// To take care global variable if OFF}else{
$start = 0;
}
if(!($start > 0)) { // This variable is set to zero for the first page
$start = 0;
}
$eu = ($start - 0);$limit = 5; // No of records to be shown per page.$whathis = $eu + $limit;$back = $eu - $limit;$next = $eu + $limit;
// to check the total number of records$query = mysql_query(" SELECT * FROM
//select the record with limitation$query = mysql_query(" SELECT * FROM
//code for previousif($back >=0) {
echo "PREV ";
}