You must Sign In to post a response.
  • Category: HTML

    How to create page navigation like this in php?

    Friends,

    I am designing my site in php. i have binded 250 data in my pages from mysql. now i want to bind 10 data per page. if user click page no 1 want to bind first 10 data, if user click page no 2 want to bind next 20 data.how to create page navigation like this in php?
  • #748693
    You should create custom pagging in php page
    You should search in google for custom pagging in PHP

    i put some links for you ,Take a look.. :)

    http://www.tutorialspoint.com/php/mysql_paging_php.htm

    https://www.drupal.org/node/387786

    http://www.phpeasystep.com/phptu/29.html

    http://code.tutsplus.com/tutorials/how-to-paginate-data-with-php--net-2928

    https://www.udemy.com/blog/php-pagination-tutorial/

    http://drupalcontrib.org/api/drupal/contributions!custom_pagers!custom-pager.tpl.php/6

    Regards,
    Nirav Prabtani (Senior Web Developer)
    Email : niravjprabtani@gmail.com
    blog : niravprabtani.blogspot.in

  • #748758
    [Response removed by Admin. Read forum policies.]
    Thanks,
    Ashutosh Jha
    http://tricksroad.com

  • #748860
    Hi,

    create all necessary page, for showing 10 consequitive records in each page u need to use limits in mysql query.

    1st Page
    select * from tblName
    order by records
    Limit 1,10

    2nd page
    select * from tblName
    order by records
    Limit 11,10

    and so on..



    Thanks
    Karthik.R
    http://www.indiumsoft.com/core-qa-offerings/test-automation


  • Sign In to post your comments