I want to use GET to get the variable and thus sort the data displayed from my database. Something like this:
Select * from table where type="$type" order by id desc
Where $type is the variable I want to get from the URL.
The thing is, I want to set it so that if index.php?x=normal, then type="normal", if index.php?x=strange, then type="strange", and if x is anything other than the specified types, then type would be set to all.
In other words, I want to only get the data that matched with the specific type, and if it's not set, all results from the database will be displayed.