Super Simple PHP Pagination

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

КОМЕНТАРІ • 116

  • @PoloDev10
    @PoloDev10 9 років тому +29

    This is best UA-cam channel to learn php. I am started watching php academy daily basis. Alex is a great teacher

    • @codecourse
      @codecourse  9 років тому +17

      Very kind of you, thanks!

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

    Oh! Alex,
    Even after so many years, this tutorial trumps everything else like it on UA-cam.
    I wish you created a way to link this pagination with a Search field. It will be a lifesaver if you do.
    Remain blessed Bro., for sharing.

  • @currentlydead303
    @currentlydead303 10 місяців тому

    Thank you so much! I changed a few things better to my knowledge, but this was so helpful! I just started to code a few months ago and even 8 years later this tutorial was super helpful :D

  • @aotiendung5511
    @aotiendung5511 7 років тому

    Nice tutorial. the best YT channel

  • @nicholassterghiou3460
    @nicholassterghiou3460 8 років тому

    I loved the intorduction to php mysqli videos. Those provided a fair start against previous versions of mysql.
    But this time I cannot agree that this is a Super Simple Pagination video to deal with!
    I believe that are some much more to use as guide to the proper needs.
    This post is only for those who seeking for faster ways to apply to their needs
    Thank you for your efforts so far...

  • @AmrSubZero
    @AmrSubZero 9 років тому

    I Like that you didn't stop at the 2011's pagination tutorial, you came with another idea for it, and that's cool as usual from you :) thanks alot.

  • @bensosfrequents
    @bensosfrequents 9 років тому

    great Alex for your work. May God bless you genuinely ... I have never entered web design class but through php academy,
    i have got my future... am now a great and a big internet application programmer,,,, thanks Alex for your kindness

  • @Barrosy
    @Barrosy 8 років тому

    Thank you so much. You learned me how to make such pagination at such an easy way of explaining. You're amazing!

  • @muazhesamofficial2158
    @muazhesamofficial2158 9 років тому

    hi alex garret . You are really a boss public.I have actually learnt php implementation from you.thanks a lot again :)

  • @EduardoHenimmans
    @EduardoHenimmans 8 років тому

    Simple, clear and on point!!! Thanks

  • @StefanoV827
    @StefanoV827 9 років тому +1

    Hi,
    You can erase the if statement on the $start variabile, because if the $page is 1, $start will be even zero... (1 * 5) - 5 = 5-5 = 0 ;)

  • @priscillalakini
    @priscillalakini 8 років тому

    Wow really Super.... Thank you very much!!! May God bless you! The Very best tutorial i ever seen! Thank You again.

  • @MASSIVE850
    @MASSIVE850 9 років тому

    Very clearly explained.You are doing a great job.

  • @yuxue2801
    @yuxue2801 7 років тому

    Great tutorial! I love your way of doing this, first I googled and found some articles, but they use deprecated way of connecting database, nice to watch and followed doing with this video.

  • @IrakliKhakhviashvili
    @IrakliKhakhviashvili 9 років тому

    Alex, your videos rock!

  • @Dimonion1
    @Dimonion1 9 років тому

    Thx for you tutorial. I didn't find anything new for me, but it was very interesting. Good job!

  • @perkallstrom5316
    @perkallstrom5316 7 років тому

    Yeez, big thanks for this! :) you've earned yourself a new follower for sure. Trying to learn php a bit more in depth and this was next on my agenda

  • @marcoscoelhodev
    @marcoscoelhodev 8 років тому

    I love this channel!

  • @moneymayhem2000
    @moneymayhem2000 9 років тому +4

    Alex, if it wasn't for your teaching i doubt the last 1.5 years would have been anywhere near as productive. Even though i don't need to implement pagination, i like to watch your videos just to find better ways of coding.
    I know this is very broad, but i think a video detailing best pactises and tips for efficiency at an intermediary level would be popular.
    Great vids

  • @jimfo7455
    @jimfo7455 7 років тому

    Best tutorial on php pagination. Thanks

  • @alopecito
    @alopecito 6 років тому

    Great tutorial...many thanks!

  • @javiermata169
    @javiermata169 9 років тому +4

    Alex is back!!

  • @jayson1944
    @jayson1944 9 років тому

    Great tutorial and easy to understand, your super awesome!. Keep it up.

  • @fz8205
    @fz8205 7 років тому

    ALEX ... OUR PHP HERO....

  • @turnbrain3049
    @turnbrain3049 9 років тому +1

    Very good tutorial, Thanks.

  • @kshayk0
    @kshayk0 9 років тому +1

    i was waiting for this kind of video. thank you :)

  • @linhvy01
    @linhvy01 8 років тому

    It's very very helpful for me. Thank you so much.

  • @praadiiit
    @praadiiit 9 років тому

    thank you very much!! this tutorial is so helpful :)

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

    Thank you very much!

  • @imranraja1322
    @imranraja1322 6 років тому

    Thanks Sir, for your great services

  • @scott.ansell
    @scott.ansell 9 років тому

    Awesome! Cool to see some new videos flowing. Although I feel like we need some new small projects like the URL shorten er you did a while back! :)

  • @MathewHany
    @MathewHany 9 років тому

    Great!
    I'm really like this channel, please upload more videos in php social network

  • @АлександрШабала-ж6о

    Many thanks dear!

  • @AliSa-qm5xe
    @AliSa-qm5xe 7 років тому

    very good, thank you very much.

  • @aomo5293
    @aomo5293 7 років тому

    Thank you for this tutorial, I hope you do a tuto for us using slim3. thank you

  • @girlsfitness3996
    @girlsfitness3996 6 років тому

    awesome!!! keep making cool videos

  • @ManishGupta-cn7ei
    @ManishGupta-cn7ei 7 років тому

    It would be nice to limit number of pages to 5 at a time ex. 1 2 3 4 5 , and then as you click 5 - the pages change to 5 6 7 8 9, then as you click 9, pages change to 9 10 11 12 13, similarly on the downside.. and have a next previous buttons which do the same thing... perhaps in another tutorial or maybe a link to guide us...

  • @pashamaggot
    @pashamaggot 8 років тому

    Thanks A LOT !

  • @MohammedkabirDawud
    @MohammedkabirDawud 9 років тому

    Thank you Alex
    This help me lot of things
    Big Thank you!

  • @Rodbravo1
    @Rodbravo1 9 років тому +1

    Great video, I have only one question... in the video you selected "per-page = 1" and it showed 56 pagination results, so... how could I limit that to show for example, only 10 results instead of 56 ?

  • @CzajekTutorialowiec
    @CzajekTutorialowiec 9 років тому +7

    Instead of isset() I'd use !empty() due to the fact, that such url is possible: /?page=&per-page=

  • @MrNipons
    @MrNipons 9 років тому

    Good lesson

  • @damrod330
    @damrod330 8 років тому

    Thank you so much

  • @tony_C4
    @tony_C4 7 років тому

    Thank you:)
    this is very good lesson:)

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

    ok this is very good thanks a lot

  • @Намбаванинзеворлд
    @Намбаванинзеворлд 5 років тому

    Nice video. Thank you =)

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

    hell yeah guys alex garrett is a legend, go to his website if you want to learn more and get a job as a developer

  • @FranklinWaller
    @FranklinWaller 9 років тому

    It turns out that running 2 query's one with limit and one without is much faster then using SQL_CALC_FOUND_ROWS

  • @theaveragejoe89
    @theaveragejoe89 7 років тому

    Hi Alex, very helpful tutorial. I've just followed your procedure and everything's working great one little problem. I had a counter variable that I used to display the serial numbers for each rows. But that counter variable isn't display the correct row number anymore. Every time I'm on a new page, the counter variable resets back to 1. Any idea how I can fix that? Thanks again!!

  • @ArnoldsKtm
    @ArnoldsKtm 9 років тому

    I'm still wondering why aren't you fetching data with fetchObject method?

  • @musamalcolmxsheriff561
    @musamalcolmxsheriff561 9 років тому +1

    Wonderful video

  • @AymanAbdoun
    @AymanAbdoun 8 років тому

    You are awesome

  • @TestificowMC
    @TestificowMC 8 років тому

    I love this tutorial! Is there a way to block the users from changing the amount of results they want to see per page in the url?

  • @ovidiudrobota2182
    @ovidiudrobota2182 9 років тому

    Alex, thank you. I guess you know PHP almost 100%. :)

  • @hehehaha819
    @hehehaha819 8 років тому

    how can you make a page list of atleast 5 example: 1 2 3 4 5, then when user clicked page 5 it will result like this: 3 4 5 6 7. So that the pagination will not be too long?

  • @jeowd
    @jeowd 9 років тому

    For finding the positioning where your setting start instead of doing:
    ($page * $perPage) - $perPage
    Wouldn't be quicker and easier to do: ($page-1) * $perPage
    Better efficiency as system doesn't have to retrieve $perPage twice from memory.

    • @codecourse
      @codecourse  9 років тому

      You can absolutely do it like that. I just wanted to be very explicit in the way I explained it. Thanks for the comment, useful to many people I'm sure.

    • @ArnoldsKtm
      @ArnoldsKtm 9 років тому

      ***** what?

    • @jeowd
      @jeowd 9 років тому

      *****
      expression we was talking about would be X in the case of the sql statement "LIMIT X,Y" and where Y would be X+$perPage etc

  • @xXxxXx-mv2lc
    @xXxxXx-mv2lc 9 років тому

    What happened with the "PHP Social Network" series?
    PS: Love your videos

  • @samvelgevorgyan8534
    @samvelgevorgyan8534 8 років тому

    where is the link where someone doesn't use OOP?

  • @TheFILIPLAV
    @TheFILIPLAV 9 років тому

    Just one question, is this PDO, OO or Procedural?

  • @mhdip5541
    @mhdip5541 8 років тому

    if i input per-page = 0 then it shows can't division by zero .. how i solve this problem

  • @nathangek
    @nathangek 9 років тому

    Alex, I've got to say, usually you give the best content with every little feature etc, but on this one Adam Khoury has a better tutorial.

    • @darknawg63
      @darknawg63 9 років тому

      ***** I like Alex far better. Nothing personal against Adam Khoury, but his monotone voice and metronome-like cadence has me nodding off at the computer. To each his own as they say.

    • @nathangek
      @nathangek 9 років тому

      Dark Nawg Yeah, but I was talking about this specific topic and their explanation video's.

    • @darknawg63
      @darknawg63 9 років тому

      Ah yes. True. I actually like both Alex and Adam. Plus points for Adam for providing source code for you to play around with :)

  • @carlosss993
    @carlosss993 9 років тому

    can you do an advance tutorial on loading new content when you reach the bottom of the page, using Laravel please :) amazing videos btw :D

  • @deshkarabhishek
    @deshkarabhishek 9 років тому

    When did you switched from windows to Apple ? :O

  • @tatifisu2150
    @tatifisu2150 8 років тому

    Thank you Sir.... anyway, how to make previous and next function, sir?

  • @danielgtz.4269
    @danielgtz.4269 9 років тому +1

    Hi thank you, would be interesting to see Ajax Pagination with Laravel PHP. thanks

  • @japjap6406
    @japjap6406 8 років тому

    did you have a security measurements to proect against, ddos, file inclusion, spam, bots, etc. ?

  • @donnatelloo
    @donnatelloo 8 років тому

    !Starter
    i am using mysqli and if i use it will be some problems?
    thanks

  • @MrGoatsy
    @MrGoatsy 9 років тому

    Why did you use {$start} and not just $start? Wouldn't that be the same?

    • @muneebkhan313313
      @muneebkhan313313 6 років тому

      i accidentally wrote $start without curly brackets. and i got values in -ve. so i declared in curly brackets then i didn't get -vr values so i guess that's why curly brackets been used.

  • @lanwilds9585
    @lanwilds9585 7 років тому

    awesome

  • @cajegoes
    @cajegoes 8 років тому

    Sir, if i run a query using SELECT * FROM table WHERE id LIKE '%anything%'. results in 1st page are ok but on the next pages its just blank pages...

  •  8 років тому

    When I apply the CSS, it has no impact on the numbers, i've checked multiple times, it is the same and correct file.
    I've also use "List-style-type = none" But still nothing
    Did anyone encoutered this problem ?
    Thank you

  • @BMikel
    @BMikel 7 років тому

    Alex can i make smth like this without MYSQL? I just want add some stuff like "pagination" to my simple static html site without database.

  • @makwanav
    @makwanav 7 років тому

    No offence but why PDO? not mysql or mysqli? I don't know PDO

  • @LosEagle
    @LosEagle 8 років тому

    Doesn't this leave security issue where user can exploit get requests and send dozens of them at the same time ? Sounds like good way to ddos the server since php would have to query each of those requests from mysql. Btw I know this is made just for the sake of this tutorial just asking.

    • @EduardoHenimmans
      @EduardoHenimmans 8 років тому

      So how would you improve the code to avoid being hacked... I'm learning PHP and am new to the language, help a newbie

  • @firepants20
    @firepants20 9 років тому

    What does everyone recommend as a testing database software? I can't seem to get WAMP to work anymore.

    • @codecourse
      @codecourse  9 років тому

      I'm not sure what you mean by testing database software, but WAMP, XAMPP, etc., come with MySQL. Otherwise, you might want to look into using Vagrant.

    • @firepants20
      @firepants20 9 років тому

      I'll check out Vagrant. WAMP doesn't work at all for me.

  • @miguelsirna
    @miguelsirna 9 років тому

    nice

  • @amerohits
    @amerohits 9 років тому

    Hi Alex I am new in php ...
    Please let me know how to get your source code to practice your tutorials

    • @vigilancer
      @vigilancer 9 років тому +2

      My god, don't be like that kind of guy, just watch the video while coding it, you will learn from that way. You won't learn from just watching doing nothing, especially if you're a newbie. -_-

  • @codecourse
    @codecourse  9 років тому +4

    ua-cam.com/video/8WoxPWVxXHI/v-deo.html

    • @gameplanet5533
      @gameplanet5533 9 років тому +1

      Phpacademy you are... AWESOME! I've been looking for this my whole life! It is hard when you are from none english speaking country and you dont know how to say what you are looking for. Thank you :D

  • @deniamnet2
    @deniamnet2 9 років тому

    Hey which font do you use in Sublime?

  • @kaysiz-zw
    @kaysiz-zw 7 років тому

    For those who have a huge number of results you can use 'next' and 'previous' to display results. code below, not perfect but does the trick.
    "

  • @KrakeNjp2y
    @KrakeNjp2y 8 років тому

    SEEXYYYY

  • @aArcziMetin2
    @aArcziMetin2 9 років тому

    Yes im not doing oop programming yet. So it wont help me

    • @Djangokillen
      @Djangokillen 9 років тому

      This isn't OOP :)

    • @lucassnel6507
      @lucassnel6507 9 років тому

      Object Oriented Programming Programming
      i dont do that either :D

    • @Djangokillen
      @Djangokillen 9 років тому

      Lucas Snel Uhm, this isn't oop... :)

    • @Djangokillen
      @Djangokillen 9 років тому

      Lucas Snel If you meant this video, of course.

    • @lucassnel6507
      @lucassnel6507 9 років тому

      Djangokillen I was mocking the other guy cuz he said "oop programming"

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

    i love you Alex (no homo)

  • @tatifisu2150
    @tatifisu2150 8 років тому

    Thank you Sir.... anyway, how to make previous and next function, sir?