rupam_jaiswal Posted September 9, 2008 Share Posted September 9, 2008 Hi, i am a newbie in using ajax. Please excuse me if a similar query has been posted earlier. I have to create pagination for my website that has already been done in php.I m using smarty templates . Now i have to do pagination using ajax.Links displayed will be like First | Prev | 1-15 | Next | Last where first,prev,next,last are the links. what are the the changes that i have to make in my template and php files. should my php files returns result in xml format?? Regards Rupam Quote Link to comment https://forums.phpfreaks.com/topic/123405-pagination/ Share on other sites More sharing options...
JonnoTheDev Posted September 9, 2008 Share Posted September 9, 2008 You will have to modify the database (if your results are from a database) query to only get you the number of results based on the page parameter i.e. mypage.php?page=x What has XML got to do with pagination? Quote Link to comment https://forums.phpfreaks.com/topic/123405-pagination/#findComment-637571 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.