Created: November 18, 1999; Updated: December 20, 1999:
The script mdb_sql.php3 can be called by another script or application
to perform a search on the MDB, and will return the results as an HTML table,
CSV data or as a WDDX packet.
The URL for the script is: http://metallo.scripps.edu/api/mdb_sql.php3, and requires 2 parameters: "query" and "format", the former is the "SELECT" SQL query statement, and the latter indicates the format ("table", "csv" or "wddx"). You can send the parameters using a GET or POST method.
If you call the URL w/o passing any parameter, then the script will output:
ERROR: wrong number of parameters
Parameters:
query : 'select' query statement
format : table, csv or wddx
table = generates an HTML table
csv = comma separated values (quote: ", escape char: \)
wddx = a WDDX packet
You can use the following form to experiment by
sending a valid SELECT SQL query to the MDB. This script is designed to
be used by other scripts or applications, this form interface is for
demonstration purposes only.