Well I don't know if I understand you absolutely. I now have a code like this
...
if (sort==1) {
$query = "SELECT * FROM myTable order by title";
}
else {
$query = "SELECT * FROM myTable order by ID";
};
...
In the url I print test.php?sort=1
But still it orders it by the ID. I'm new to php, so maybe it is just that I dont understand some elementary concepts here.
Any help on this would be good.
Norway