Hi folks,
I'm really new on coding PHP and spend a lot of time scanning various PHP forums to find a solution for the followings problem.
I've a small MySQL table called USER. Only 4 fields ar in this table:
1. id -> smallint(6)
2. lastname -> varchar(30)
3. firstname -> varchar(30)
4. userid -> varchar(30)
I fully managed to create a HTML page and I fully managed to select the content of the MySQL table.
The "key" now is that I would like to click on the HEADER of the HTML table in order to SORT the CONTENT of the table.
But before I post my available PHP-code, I have a first question: this forum has EXACTLY WHAT I AM LOOKING for, I can click an any HEADER entry and the table gets sorted by this column.
Can I get this piece of PHP-code to study how it is solved? It would simply be great after all these terrible long nights of scanning forums ...
I'm really new on coding PHP and spend a lot of time scanning various PHP forums to find a solution for the followings problem.
I've a small MySQL table called USER. Only 4 fields ar in this table:
1. id -> smallint(6)
2. lastname -> varchar(30)
3. firstname -> varchar(30)
4. userid -> varchar(30)
I fully managed to create a HTML page and I fully managed to select the content of the MySQL table.
The "key" now is that I would like to click on the HEADER of the HTML table in order to SORT the CONTENT of the table.
But before I post my available PHP-code, I have a first question: this forum has EXACTLY WHAT I AM LOOKING for, I can click an any HEADER entry and the table gets sorted by this column.
Can I get this piece of PHP-code to study how it is solved? It would simply be great after all these terrible long nights of scanning forums ...













