With powerful frameworks like jQuery, it seems to be possible to build an entire app logic on the client side. It\'s very much analogous to building a client app as a native
I suppose one could do that, but PHP is rather more convenient for manipulating result sets. Also, the traditional approach provides an extra level of security so that machines in the wild don't have direct access to the database, and all the usual webserver security and access controls can be used.