Creating a simple pagination using php and mysql

  Рет қаралды 25,488

Digital Fox

Digital Fox

Күн бұрын

In this tutorial we are going to explain step by step, how to create a
pagination using php and mysql.
You can read the article here:
digitalfox-tut...
You can buy me a coffee and get the whole source code in a zip file.
www.patreon.co...

Пікірлер: 54
@HakanGalip
@HakanGalip 2 ай бұрын
Hey Digital Fox your video helps me solving a problem that i can not solve for a year... Thanks a lot and it is very good that teachers gives their inputs to others...
@DigitalFox-tutorials
@DigitalFox-tutorials Ай бұрын
Glad to hear that! Thank you too.
@NoelReinhardt
@NoelReinhardt 8 ай бұрын
you explain this in a very easy understanding language! love this man! really helpful for my project
@DigitalFox-tutorials
@DigitalFox-tutorials 8 ай бұрын
Glad it helped!
@UrošSpasić-i3p
@UrošSpasić-i3p 10 ай бұрын
Amazing tutorial, you explain things beautifully. Thank you!
@DigitalFox-tutorials
@DigitalFox-tutorials 10 ай бұрын
Thank you too
@majeedpanahi5783
@majeedpanahi5783 2 ай бұрын
Thank you. Pagination is well explained in a professional-like manner.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 ай бұрын
Glad it was helpful!
@conradunderwood6742
@conradunderwood6742 Жыл бұрын
Thanks for this video. It was easy to follow and helped me a lot
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Glad it helped!
@lazybusylog5081
@lazybusylog5081 Жыл бұрын
Thanks! Quick and easy explanation! Nice job!
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Thank you
@Ann-t1n
@Ann-t1n Ай бұрын
thanks its really helpful
@DigitalFox-tutorials
@DigitalFox-tutorials Ай бұрын
Glad it helped
@jpacs3738
@jpacs3738 4 ай бұрын
Thank you so much! This is very helpful tutorial. You're awesome!
@DigitalFox-tutorials
@DigitalFox-tutorials 4 ай бұрын
Glad it was helpful!
@VlkSamotar
@VlkSamotar Жыл бұрын
It was very useful for me. Thank you.
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Glad it was helpful!
@aymdatenth1796
@aymdatenth1796 Жыл бұрын
thank you this was quick and easy without the use of bootstrap
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Glad you liked it
@lordcarlocabangal5713
@lordcarlocabangal5713 Жыл бұрын
very useful tutorial!!!! Thanks a lot!!!
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Thank you too.
@marcofloriano
@marcofloriano 3 ай бұрын
Amazing tutorial nice job
@DigitalFox-tutorials
@DigitalFox-tutorials 3 ай бұрын
Thank you! Glad you liked it.
@ngetsophea8812
@ngetsophea8812 9 ай бұрын
I tested the style "active" in the JS on my end. I use +1 in stead of -1, it's working. I still don't know when I use -1, it's two steps behind the active page. For example, I am on page 4, but the active page show on page 2.
@sdsd-ec8rw
@sdsd-ec8rw Жыл бұрын
do you have a video for the case when there are a lot of pages that don't fit in the screen? I think it is important to address this case
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Hey, no i don't, but you are right. I will try to do a video on it.
@dinidumadushan4749
@dinidumadushan4749 Жыл бұрын
really helpful. thank you very much..
@cecilbennett289
@cecilbennett289 5 ай бұрын
Wow this is a nice video man, thank you so much 💪💡
@DigitalFox-tutorials
@DigitalFox-tutorials 5 ай бұрын
Glad you liked it!
@abdulghaffar3110
@abdulghaffar3110 6 ай бұрын
Hi! very nice video for my project thanks.
@NtiranyibagiraFelicien
@NtiranyibagiraFelicien 5 ай бұрын
tHANKS bUT yOU eXPLAIN qUIKLY.
@DigitalFox-tutorials
@DigitalFox-tutorials 5 ай бұрын
Sorry about that
@d.o.balogun3228
@d.o.balogun3228 Жыл бұрын
Good job
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Thanks
@Iam_sami_8080
@Iam_sami_8080 Жыл бұрын
Thanks alot
@rodolfosgc1882
@rodolfosgc1882 8 ай бұрын
Gracias me funciono
@lowEndAppsAndGames
@lowEndAppsAndGames 4 ай бұрын
Hi thanks alot can you make the other one where you scroll to initiate the pagination to move to the next pages automatically without clicking do it with no frameworks like jquery and bootstrap as other youtubers have done it.
@DigitalFox-tutorials
@DigitalFox-tutorials 4 ай бұрын
Good idea, thanks, i will try.
@majeedpanahi5783
@majeedpanahi5783 2 ай бұрын
I do have a question though. Why would a developer go through this long coding while he/she can use the Bootstrap 5 libraries? What is the advantage of one over another?
@DigitalFox-tutorials
@DigitalFox-tutorials 2 ай бұрын
Hey, i know it's more convenient to use bootstrap, not only to create a pagination but other stuff to, but you must also know basic programming stuff like this one.
@parakeetbird863
@parakeetbird863 6 ай бұрын
can you make a video on how I can make it dynamic, where if I have more than 5 pages the next numbers would show us an ellipsis and the same if the first page number can't be seen
@DigitalFox-tutorials
@DigitalFox-tutorials 6 ай бұрын
I will try
@Japantalents
@Japantalents Жыл бұрын
Bruh I like ur voise 😂❤
@photoinshot1355
@photoinshot1355 Жыл бұрын
Great video thanks! Is there a way to search a paginated table?
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Thank you. Yes, we can use javascript to fetch all the results, (titles), from the page and then search through them.
@khalafnasirov
@khalafnasirov Ай бұрын
i wrote For previous button ?page_num= For next button ?page_num=
@OnyeStephen
@OnyeStephen 10 ай бұрын
Amazing tutorial, but as a curious student, if a user sets the page-nr = 0 or less than 0, it displays an error or says (showing -3434 of 10pages) is there a way to fix this so that if the value of the page-nr = 0 or less than 0 the page-nr is automatically set to 1. Used this code to fix it if(!is_numeric($_GET["page-nr"]) || ($_GET["page-nr"] $pages) ){ //here we are making sure that if the user sets the page through the url a value that is not numeric, less than 0 or greater than the number of pages from the database, we referesh the page header("Location:index.php"); } else { $page = $_GET["page-nr"] - 1; }
@PhongLan315
@PhongLan315 10 ай бұрын
Where to put that code?
@OnyeStephen
@OnyeStephen 10 ай бұрын
@@PhongLan315have the code where you set the page start point $page on the php scripts page
@DigitalFox-tutorials
@DigitalFox-tutorials 10 ай бұрын
@PhongLan315 Hey, replace the $page = $_GET['page-nr'] - 1; in the script.php file withe the clever solution that @OnyeStephen provided. I mean the whole if statement.
@DigitalFox-tutorials
@DigitalFox-tutorials 10 ай бұрын
@OnyeStephen Hey, nice, i had that in my mind but i forgot during the recording. Great work.
@khalafnasirov
@khalafnasirov Ай бұрын
For page of numbers
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 16 МЛН
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 26 МЛН
Live Data Search with Pagination in PHP Mysql using Ajax
35:17
Webslesson
Рет қаралды 25 М.
Bootstrap Pagination in PHP and MySQL With dynamic limit
20:08
learnWebCoding
Рет қаралды 86 М.
Пагинация на PHP (pagination) | Динамический веб-сайт
37:04
Андрей Андриевский
Рет қаралды 8 М.
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 32 М.
Pagination in MySQL - offset vs. cursor
13:20
PlanetScale
Рет қаралды 57 М.
Js chart  using php and mysql extremely easy example.
7:15
Alimon Pito
Рет қаралды 47 М.
Как сделать пагинацию на PHP
9:42
CodeWriter
Рет қаралды 7 М.
Create Pagination in PHP and MySQL
15:23
Simon Suh
Рет қаралды 150 М.
Pagination in Php with Next and Previous Button
27:26
OnlineITtuts Tutorials
Рет қаралды 69 М.
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 16 МЛН