I am using Wordpress with JQuery to create a vehicle selection form.
Vehicle information is retrieved by JQuery Ajax calls to a PHP backend script. The PHP scripts query an SQLite database for vehicle information.
Wordpress form -> JQuery get -> PHP script -> SQLite DB
I have three distinct queries that need to be executed:
- Vehicle makes available
- Vehicle models for a specific vehicle make
- Vehicle years for a specific vehicle make and model
I could create a custom PHP script that accepts a "query_type" parameter from the JQuery get call. The PHP script would then run the appropriate SQL query. That option sounds mediocre at best.
Should I create a custom PHP file for each of the three queries?
OR
Is there a neat PHP tool that will create something similar to .NET's Service Endpoints?
Thanks Everyone!