For more info check out:
http://code.nytimes.com/projects/dbslayer
Once installed and configured, DBSlayer starts up a DBSlayer daemon on port 9090 which acts as a proxy for the backend MySQL server. This proxy can then be [URL=“http://code.nytimes.com/projects/dbslayer#ExampleUsage”]queried via HTTP. The response from the query is returned in the [URL=“http://en.wikipedia.org/wiki/JSON”]JSON format.
These techniques combined, in my opinion, work GREAT for AJAX applications.
DBSlayer is built on top of the cross-platform MySQL and Apache Portable Runtime libraries and has been tested on Linux and Solaris-x86 boxes but should work on more machines! A source package for Unix systems can be [COLOR=#0000ff]downloaded here[/COLOR].