I know it\'s such a basic thing, but a Google search hasn\'t shown me how to re-sort the rows after clicking the th links.
th
I\'ve got this:
This is the most simple solution that use:
// Use this as first line upon load of page
$sort = $_GET['s'];
// Then simply sort according to that variable
$sql="SELECT * FROM tracks ORDER BY $sort"; echo ''; echo 'Title'; echo 'Album'; echo 'Artist'; echo 'Count'; echo '';