I want to display five record per page through pagination (mysql,php,html,css) until all the records are displayed, navigation to pages must be like,
you just should remove spaces in href
and also make $page = $page + 1
when page is 0
if( $page > 0 ) {
$last = $page - 2;
echo "Last 10 Records |";
echo "Next 10 Records";
}else if( $page == 0 ) {
$page = $page + 1;
echo "Next 10 Records";
}else if( $left_rec < $rec_limit ) {
$last = $page - 2;
echo "Last 10 Records";
}