I'm currently trying to use a $_GET to populate a MySQL query with in a URL on another page within a Wordpress site.
MySQL Query sample:
$query = "select items from table_name where state = '$_GET[state]';
Which will then query the database based off the state name and then spit out an array with the data, etc.
I'm kinda of confused on how to get it with the permalinks kicked on.
I was reading this: Using $_GET variables in the URL?
But I'm not sure if that's the best way to do it (since there was a couple of examples) or if there is another recommendation? And I'm also not too sure how to get that to pass within the query string either?