PHP Developers Network
http://forums.devnetwork.net/

Exploring library package for a beginner programmer?
http://forums.devnetwork.net/viewtopic.php?f=6&t=142461
Page 1 of 1

Author:  bookDig [ Wed Apr 13, 2016 2:31 pm ]
Post subject:  Exploring library package for a beginner programmer?

So I am working on project and I need to apply pagination to it what I am facing is the choice whether I should develop my own code or should I study the pagination library of Laravel I admit the ideal thing would be to first develop it on my own to see how it works but the issue is that I am at a deadline in training period and I have to learn to explore libraries to develop market oriented apps. So would someone kindly recommend me. :|

Author:  Celauran [ Wed Apr 13, 2016 3:01 pm ]
Post subject:  Re: Exploring library package for a beginner programmer?

I'd do it yourself for the learning experience. Pagination isn't that hard, really. Total items / items per page is your page count. Current page * items per page is your offset. Beyond that it's really just a SELECT statement.

Author:  Christopher [ Wed Apr 13, 2016 4:40 pm ]
Post subject:  Re: Exploring library package for a beginner programmer?

If it is data in a database, you may need to SELECT COUNT(*) WHERE ... first to get the total records, and then SELECT * WHERE ... LIMIT to get a page worth.

Author:  thinsoldier [ Fri Apr 29, 2016 10:34 am ]
Post subject:  Re: Exploring library package for a beginner programmer?


Author:  Christopher [ Fri Apr 29, 2016 2:30 pm ]
Post subject:  Re: Exploring library package for a beginner programmer?


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/