I am working on a site and I want to be able to query the appropriate table based on their location. For example, if they input they live in NY, it should query the NY table. If they input they live in CA, it should query the CA table and so on.
Is this possible? If so, can you provide me with basic code to get me started?