PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to use the following code to sort columns generated by a mysql query.
It doesn't sort the fields by default as it should or when you click the sort links.
It just reloads the page with no errors.
You have to $_GET['var']. Unless register globals is on, which is doubtful you need to get the variable. $_GET['query_string_var_name'] will retrieve the data for you. I always fall back on var_dump(). If you think a variable should be available, make sure it is by echoing variables and var_dumping them to the screen where you think they should be availble. It's a great way to find problems when there are no syntax errors.