Return to Snippet

Revision: 11586
at February 10, 2009 12:51 by iroybot


Initial Code
// pagination 
		$itemcount = $res->length();
		$pagemin = ($itemcount / 4);
		$pagemax = (($itemcount / 4) + .499);
		$roundmax = round($pagemax);
		$roundmin = round($pagemin);
		if ( (intval($roundmax) - intval($roundmin) === 1) ) {
			$pages = intval($roundmax);
		} else {
			$pages = intval($roundmin);
		}

Initial URL

                                

Initial Description

                                

Initial Title
Pagination Madness

Initial Tags

                                

Initial Language
PHP