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 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? Link to comment https://forums.phpfreaks.com/topic/123405-pagination/#findComment-637571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.