Pagination in Php with Next and Previous Button

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 77

  • @codingcafe8360
    @codingcafe8360 4 роки тому +3

    Thank u, sir, for the logic, perfectly understand the logic and I correctly implemented it on my project as well.

  • @jyotithasal7924
    @jyotithasal7924 5 років тому

    thank you so much for uploading this video.this is very useful for me.keep uploading more video for php

  • @cyberperformer
    @cyberperformer 3 роки тому

    Thank you so much Sir, Very Helpful tutorial, i need your more php tutorial..

  • @thatsyourboieasy4577
    @thatsyourboieasy4577 3 роки тому

    just found this after hours and hours of work and studying session, i was about to give up... but fuck it was worth. Ure a legend, thx man

  • @fitnessfreedom6593
    @fitnessfreedom6593 2 роки тому

    Thanks man , it helps me a lot. Thank you again !

  • @ranjanpaswan8811
    @ranjanpaswan8811 3 роки тому

    Thank u giving me such a beautiful video ❤️❤️

  • @jooryalhamed938
    @jooryalhamed938 2 роки тому

    Thank you so much, you saved my life

  • @raajputs3646
    @raajputs3646 3 роки тому

    Thnk you so much sir 🙏

  • @maheshswami9583
    @maheshswami9583 4 роки тому +1

    Thanks man, it really helped me.

  • @KyawLinnHtet-yd6hz
    @KyawLinnHtet-yd6hz 7 місяців тому

    Thanks a lot. This is very helpful for me

    • @milandudhatra5010
      @milandudhatra5010 6 місяців тому

      give me this source code i don`t find this code on link who shown here

  • @meme115
    @meme115 2 роки тому +1

    When I hit enter without entering any query in search box it's view the all table data's. How to fixed it.

  • @LGOKUL2303
    @LGOKUL2303 4 роки тому +1

    Perfectttt! Just the thing I was looking for

  • @tk_gaming777
    @tk_gaming777 3 роки тому

    Great video, it helped a lot

  • @anamshaikh7910
    @anamshaikh7910 3 роки тому

    Thanks bro, Just need to add for the next button, the next button gets displayed for the last record also so you can add this if condition ($page

  • @swastikjainsj
    @swastikjainsj 3 роки тому

    Subscribed 👍👍👍👍

  • @charlotte321nony
    @charlotte321nony Рік тому

    Thank you so much!

  • @saisaisecca3636
    @saisaisecca3636 3 роки тому

    Thank you Sir for the tutorial. 💜

  • @rohitmalik9843
    @rohitmalik9843 4 роки тому +1

    great tut... thank you so much

  • @parlonsdejesuschrist2832
    @parlonsdejesuschrist2832 3 роки тому

    Thanks for your clarification

  • @traderslearningbackyard2191
    @traderslearningbackyard2191 5 років тому +2

    Though the code given code is good as per my observation If no of pages is high it displays all the links from 1 to 500 which won't be good. Try to display only 5 or 10 links

  • @christianmarklaurio9604
    @christianmarklaurio9604 2 роки тому

    Thanks Sir!

  • @rashedobeidat5150
    @rashedobeidat5150 4 роки тому

    very clear and helpful, thank you

  • @jeffmumba3458
    @jeffmumba3458 4 роки тому

    Thank you for this video, it helped me

  • @ibrahimkhan-vc9mp
    @ibrahimkhan-vc9mp 4 роки тому

    thanks u for being so nice, really appreciated

  • @jiolomilesngo6065
    @jiolomilesngo6065 4 роки тому

    goodjob you just doubled my salary this month because of this tutorial

    • @luiskp4328
      @luiskp4328 4 роки тому +2

      yeah :D, i am so happy that i got the CEO postion of google because of this tutorial

  • @gyuiopllkrtyuilljk9166
    @gyuiopllkrtyuilljk9166 5 років тому

    big thanks. good job man. ) this is real help me. health your many many!

  • @technologyguide4500
    @technologyguide4500 4 роки тому

    Thank you for this video

  • @akazad3678
    @akazad3678 5 років тому

    Very nice tutorial, i need your more php tutorial

    • @OnlineITtuts
      @OnlineITtuts  5 років тому

      Thanks Please Visit My Channel Inside My Channel Have a Website Link, You need to follow it, once you opened my website, then you will able to many Php based project tutorial available :)

  • @NedumEze
    @NedumEze 4 роки тому

    Thanks. Pretty straightforward.
    But, when the term to find in the database comes from a search user input field, the pagination breakdown. How do you ensure the search term remains in the pagination pr_query?

  • @muhammadmohsan8653
    @muhammadmohsan8653 4 роки тому

    thank you so much

  • @Cricksports149
    @Cricksports149 5 років тому

    thanku so much for this video

  • @abdurohmantadesse3503
    @abdurohmantadesse3503 28 днів тому

    Best

  • @VFRodriguez
    @VFRodriguez 4 роки тому

    Good job!

  • @NedumEze
    @NedumEze 3 роки тому

    Thanks so much for this tutorial. May I ask please?
    If you had a search field with method GET, and paginate your result, & the 1st page displays by default, when you click 'next', or 2 for page 2, and the page goes blank, what might the cause be?

  • @azizkouiki
    @azizkouiki 2 роки тому

    Thank you .

  • @shubhampodcast
    @shubhampodcast 5 років тому

    Ur amazing thainks bro

  • @mansikriplani382
    @mansikriplani382 5 років тому

    you are really awesome!

  • @joupomoti3972
    @joupomoti3972 4 роки тому

    Exactly what I was looking for thank you so much...please Sir how to center this pagination please

  • @chukwumandubuisi856
    @chukwumandubuisi856 5 років тому +1

    Plenty thanks for this great resource on pagination. besides selecting and paginating data from table rows is there a way i can paginate a lengthy string or characters using php. (example: to paginate a story of 5000 words into 1000 characters each). Thanks in anticipation.

  • @shevaron4054
    @shevaron4054 7 місяців тому

    comment faire pour que la couleur du numero de la page active soit differente de celles des autres numeros?

  • @ganeshhurgule1140
    @ganeshhurgule1140 3 роки тому

    thank u, bro

  • @finicallegend4977
    @finicallegend4977 2 роки тому

    Very good. However if you have 200 pages you don't want to show 200 on the pageination. Not sure if there's a follow up video on that?

  • @majidnoroozi4015
    @majidnoroozi4015 4 роки тому

    Thanks bro

  • @davidbdn1994
    @davidbdn1994 4 роки тому

    if i'm inside in one category of products how can i make a pagination of all products of the choosen category??

  • @mustafaali6419
    @mustafaali6419 4 роки тому

    thank you sir , very helpful this video
    i have question sir ? how i can search in all pagination pages in php

  • @youwindizz
    @youwindizz 5 років тому

    NEED HELP how about if i add in my $sql a order by rand(). bcause evertime i click the "page1" it changes everytime..
    what can i do to generate a random output that dont refresh when i click thesame number :)....

  • @arshpreetkaur3032
    @arshpreetkaur3032 4 роки тому

    i used your code in my plugin but it showed one error
    Warning: A non-numeric value encountered in.
    could you solve it plz

  • @arunkumar1414
    @arunkumar1414 5 років тому

    sir can you make video upon how to add different background colors to visited and not visited and current page

  • @journeyofaturtle-fahad2167
    @journeyofaturtle-fahad2167 5 років тому

    what will happen if there is over thousad pages, is it gonna show all the thousan pages particularly.?

    • @OnlineITtuts
      @OnlineITtuts  5 років тому

      You can use this method to display any numbers of records on each page

  • @Rajubhai-rd8ic
    @Rajubhai-rd8ic 3 роки тому

    iam follow this video and try pagination are visible only 1 other numbers not visible

  • @cheahchunsiang1817
    @cheahchunsiang1817 4 роки тому

    may I know how to adding class active at the echo page 1 page 2... etc.

  • @Henry_Nunez
    @Henry_Nunez 2 роки тому

    👏👏😊

  • @wisdom4070
    @wisdom4070 Рік тому

    You have only 5 pages,
    What if,
    Let's say,
    There are 100 pages.
    It will show all the 100 at once.
    How can that be prevented?

  • @milandudhatra5010
    @milandudhatra5010 6 місяців тому

    i don`t find code on website
    please give any way to give source code

  • @swastikjainsj
    @swastikjainsj 3 роки тому

    now Final fuction that is how to make chat system ?

  • @ISOnepal
    @ISOnepal 4 роки тому

    What if the numner of pages are more than 100?

  • @shahnazparveen4
    @shahnazparveen4 5 років тому

    Thank you so much but I think $i-1 hona chahiye next button ke liye

  • @swastikjainsj
    @swastikjainsj 3 роки тому

    u r boss

  • @ninjaooze9745
    @ninjaooze9745 2 роки тому

    3 pages, but only 2 tabs showing why ?

  • @sanketsaitawdekar4440
    @sanketsaitawdekar4440 4 роки тому

    There is a problem. Since only 3 pages are seen the user will see only 10 records. He will think there is no 4th page. And he will not press 'Next button.'

    • @avfigueiredo
      @avfigueiredo Рік тому

      Yes, the code is wrong. In the for loop he should have used "$i

  • @JNET_Reloaded
    @JNET_Reloaded 5 років тому

    link to code? / github???

  • @tusarsamal6707
    @tusarsamal6707 5 років тому

    Don't Work Data base query

  • @jonatancom8
    @jonatancom8 4 роки тому

    I fixed a NEXT button bug
    if($page>1)
    {
    echo "PREVIOUS";
    }
    for($i = 1; $i < $total_page + 1; $i++)
    {
    echo "$i";
    }
    if($i-1>$page)
    {
    echo "NEXT";
    }

  • @milandudhatra5010
    @milandudhatra5010 6 місяців тому

    anyone plese give me source code

  • @Raj4You
    @Raj4You 5 років тому +1

    Coding skill is very bad

  • @kirti..3350
    @kirti..3350 4 роки тому

    Zero sound quality