This is a simple php pagination class which uses pdo or mysqli and also supports ajax