How to create pagination in PHP and MySQL with AJAX