Thanks for the suggestion, but I'm not sure what to input in place of what you have. I mean, what is supposed to be filled in (data) and what are the commands?
You have
members.php?sortBy=age
In your code you'll have:
$sortSQL = "";
if (!isset($sortyBy)) {
$sortSQL = " ORDER BY name"; // default sort
} elseif ($sortBy == "age") {
$sortSQL = " ORDER BY age";
} elseif (etc...) {
}
Would I put
members.php?sort=1
$sortSQL = "";
if (!isset($sort)) {
$sortSQL = " ORDER BY name"; // default
sort
} elseif ($sort == "1") {
$sortSQL = " ORDER BY 1";
} elseif (?????what goes here?) {
}
What goes in your etc?
Is the "age" a command that I replace with my numbers I have? ( 1, 2, 3, etc)
I have 7 columns, so how do I repeat it and where does the code go in my .php file? Before the table command?
I'm sorry for all the questions, but I keep trying different things, and can't seem to get it right...I really appreciate any help.