Could you give me a hint?
If user click the same hyperlink of the header, it still calls
if ($sort == "b") {
$query .= " order by b asc";
}
Because it still passes the 'b' to it.
Except the code can shift to call
if ($sort == "b") {
$query .= " order by b desc";
}
when the user clicks the link again.
But, how to do it with the same link and variable?
Or, it can use a flag? But, I do not know how to use it.
Please advise.