This is a simple pagination class in PHP