One of the things I need to do on an assignment is showing information about registered users in a table. It has to be sorted in different ways by clicking buttons (gender, first name, last name, …).
I’m writing this in PHP. The only thing I came up with is working with different pages, but I would get about 20 different pages.
What would be the best way to implement this? A different page for every order type?
I’ve never worked with jQuery, but it would seem it would be good for this sort of thing?
Usually this is done with a database, in which case, you can use a language like MySQL to
ORDER BY, and this will do it for you.If you’re in PHP only (per your question), try using one of the many-available PHP Array sort options here.