Sorting and Ordering tables with PHP

  Рет қаралды 44,151

PHPBasics

PHPBasics

Күн бұрын

Learn how to sort and order tables with PHP

Пікірлер: 58
@elemjosh
@elemjosh 4 жыл бұрын
Thank you so much for this! I spent most of the day trying to figure this out, and then your video was succinct and perfect!
@pablojosecardenaspalomino7184
@pablojosecardenaspalomino7184 4 жыл бұрын
Thank you very much for sharing your knowledge. This helped me a lot. Greetings from Bogotá, Colombia.
@mantasvalantinas9086
@mantasvalantinas9086 5 жыл бұрын
Actually you're one of the best "Teachers/Lecturers" we have there @KZbin. But in the same time, it would be nice to have your code sheet @description area.
@kanikan8660
@kanikan8660 4 жыл бұрын
I have no words. Too great to be true. Keep up the good work!
@luukschouten9108
@luukschouten9108 2 жыл бұрын
thank you so much i spend waaaay too long trying to get this lol, finally finished my assignment now xD
@KaarlisStruuve
@KaarlisStruuve 3 жыл бұрын
Thank you for this amazing tutorial!
@yitzchakkatzir1547
@yitzchakkatzir1547 6 ай бұрын
I love the simplicity of this instead of using jquery and lots of other changes. The only thing I added was a set style color for the hyperlink to make it more visible/stable. Eg: style="color: yellow"
@kazimahin9137
@kazimahin9137 5 жыл бұрын
thank you so much . you are my guru .
@gussi123
@gussi123 7 жыл бұрын
Excellent.. Cannot thank you enough..
@Fendrickson
@Fendrickson 7 жыл бұрын
echo "You are THE MAN.";
@RonaldoKME
@RonaldoKME 7 жыл бұрын
your coding is super useful..!!! thx!!!
@alexeyo264
@alexeyo264 7 жыл бұрын
Good tutorial! Thank you!
@TheMizz512
@TheMizz512 7 жыл бұрын
thanks a lot!!!! u help me a lot with ur tutorial!
@r_bilek
@r_bilek 3 жыл бұрын
Super ! THX !
@jood12
@jood12 7 жыл бұрын
thank you very very much
@murdochrutherford753
@murdochrutherford753 6 жыл бұрын
This is so helpful. Thanks a load!
@kangminglim3799
@kangminglim3799 4 жыл бұрын
tq so much ==,help me solve my practical ^^
@faithdwsn1
@faithdwsn1 4 жыл бұрын
Q1: Is it possible to use this code while using a PHP Database object and mysql? Or does one have to be using mysqli exactly the way you are showing it? Feedback: I did almost everything the same, except I am getting a message back saying that "Trying to get property 'num_rows' of non-object"...I have checked and all the SELECT fields and I know I am grabbing genuine keywords from the database. So I don't know if this num_rows() function only grabs numbers, but Q2: what do I do if want to sort strings in my array lists and not numbers like yours? My table is made up of four headings of strings and names, not numbers.
@phpBasics
@phpBasics 4 жыл бұрын
Feel free to send me a message on skype and I can explain both of these. CoolEditz
@moniquenoche
@moniquenoche 6 жыл бұрын
Good tutorial!
@DramaticOgre
@DramaticOgre 6 жыл бұрын
Can you make a video how to re order the rows? Using move up/down buttons?
@usmantahir09
@usmantahir09 2 жыл бұрын
i apply your code but i get this error Warning: Attempt to read property "num_rows" on bool in D:\Usman\Web Development\XAMPP\htdocs\Work\index.php on line 138 No Record Can you help me asap??
@BinkoBunko
@BinkoBunko 8 жыл бұрын
Also another quick question, sorry for all of these lol. Is there a way to take the delete database records video you made, and incorporate that in this? As in have another column with a little x or whatever that deletes the database record thats in the row with it? So at the end of row 2, you press delete, and the database record that corresponds with row 2 is gone?
@phpBasics
@phpBasics 8 жыл бұрын
Got Skype?
@BinkoBunko
@BinkoBunko 8 жыл бұрын
Yeah, you can add me at epicman987
@alexaresposaiii7035
@alexaresposaiii7035 6 жыл бұрын
the answer to my prayers
@comptegmail273
@comptegmail273 4 жыл бұрын
works thanks
@shuyanchi5224
@shuyanchi5224 6 жыл бұрын
Cannot thank you enough..
@laurenkleinas1601
@laurenkleinas1601 5 жыл бұрын
Hi. This is exactly what I need! Is your code accessible anywhere?
@ennem1945
@ennem1945 8 жыл бұрын
Hey, first of all, thank you for this video. So I'm using this video to sort tables as well, and I'm using the same variables as you are, but with some minor changes to suit my code. I noticed that you're using the variables order and sort in your $_GET statements, I'd just like to know where they're from, I'd like to know what changes I need to make to get it working properly with my code. Thank You :)
@ennem1945
@ennem1945 8 жыл бұрын
All is well, forget the previous comment, I found the problem and it wasn't in the $_GET statements, thank you for the video though, it was very helpful :)
@christianbosch9600
@christianbosch9600 7 жыл бұрын
Very good tutorial. But - as usual in tutorials - examples are used with easy settings. How can I sort column 3 and column 5 (as in Excel) for example? Do you have a tutorial for this too or planing to produce one?
@phpBasics
@phpBasics 7 жыл бұрын
SELECT * FROM yourtable ORDER BY `column1` DESC, `column2` DESC
@christianbosch9600
@christianbosch9600 7 жыл бұрын
Thanks. Sorry for my not very clear question. For example with your table if I sort "Asset Number" I want the "Serial Numbers" sorted too. And this means I have to put the code in the "
@vandamieespadero6633
@vandamieespadero6633 4 жыл бұрын
How to sort data by their numeric amount? Like 34, 37, 38, 45, sort into 45, 38, 37, 34.
@zerocz5425
@zerocz5425 3 жыл бұрын
This does not work for me, but instead of link I created arrows, so my problem was solved. But I use your idea so, I would like to thank you for this tutorial. (sorry for my english)
@rudisuciptokang2972
@rudisuciptokang2972 3 жыл бұрын
How do you add search table feature in this sorting and ordering table with php ? any video for that ??
@phpBasics
@phpBasics 3 жыл бұрын
If you want, send me a message on Skype:CoolEditz
@BinkoBunko
@BinkoBunko 8 жыл бұрын
Once the table has been created and essentially appears like the end of the tutorial, is there a way to implement a search bar tha filters the list? So if I type in "1" it'll only show the rows that have "1" in them somewhere? Like this : pastebin.com/YwBeptus
@nemanjamarkovic9818
@nemanjamarkovic9818 4 жыл бұрын
Awesome tut, i have done everything but it doesnt work, and not even show any error but still i dont get option to sort by name and surname, how can i contact you just to tell me what have i done wrong. Thank you
@phpBasics
@phpBasics 4 жыл бұрын
Skype CoolEditz
@nemanjamarkovic9818
@nemanjamarkovic9818 4 жыл бұрын
@@phpBasics I will send you a message in a moment
@nemanjamarkovic9818
@nemanjamarkovic9818 4 жыл бұрын
@@phpBasics Messages sent i am Nemanja Markovic
@nemanjamarkovic9818
@nemanjamarkovic9818 4 жыл бұрын
@@phpBasics Thank you so much you are the best
@jayjay2979
@jayjay2979 7 жыл бұрын
HELP ME :) HAVE ERROR :( THANKS ^ ^ Notice: Trying to get property of non-object in C:\xampp\htdocs\employee\sorting.php on line 19 No Records returned.
@phpBasics
@phpBasics 7 жыл бұрын
That will happen when the query is looking for a column that isn't there. You probably have a typo or wrong information somewhere.
@jayjay2979
@jayjay2979 7 жыл бұрын
okay sir thanks. im a student want to learn more :D
@heidimitchum705
@heidimitchum705 6 жыл бұрын
I have an error HELPPP
@phpBasics
@phpBasics 6 жыл бұрын
Hi Heidi. Can you send me your code via pastebin?
@heidimitchum705
@heidimitchum705 6 жыл бұрын
Not sure what pastebin is.
@heidimitchum705
@heidimitchum705 6 жыл бұрын
I signed up for it but now it wil not let me send it to you since I did not pay for it.
@phpBasics
@phpBasics 6 жыл бұрын
It's as website that simply allows you to copy and past text and share it. If you have skype, I can assist that way as well.
@heidimitchum705
@heidimitchum705 6 жыл бұрын
I do have skype but also how would you see it if I post in PasteBin
Creating a simple pagination using php and mysql
15:57
Digital Fox
Рет қаралды 25 М.
PHP Results WITHOUT REFRESHING
11:23
PHPBasics
Рет қаралды 20 М.
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН
How to show the entire MySQL table with PHP
8:05
PHPBasics
Рет қаралды 6 М.
Ajax Jquery Column Sort with PHP & MySql
15:13
Webslesson
Рет қаралды 27 М.
Understanding and implementing a Hash Table (in C)
24:54
Jacob Sorber
Рет қаралды 354 М.
PHP in 100 Seconds
2:21
Fireship
Рет қаралды 1,3 МЛН
Login System Tutorial with PHP and MYSQL Database
32:46
Clever Techie
Рет қаралды 668 М.
Pagination in Php with Next and Previous Button
27:26
OnlineITtuts Tutorials
Рет қаралды 69 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН