Running Queries in the Background with a MySQL Client with AJAX
Are you interested in learning how to query different MySQL databases by using only a web browser as the execution environment? If your answer is yes, then look no further, because you’re in the right place. This is the second part of the series "Creating a MySQL client with AJAX." In three comprehensive tutorials, this series gives you some useful pointers on how to build quickly a MySQL client application that uses AJAX for sending queries in the background.
Now that you have available the full listing of this AJAX-based application, feel free to introduce your own modifications to the original code. Fun is already guaranteed!
To wrap up
In this second article of the series, I've shown you the definition of all the JavaScript functions that compose the client-side code of the MySQL application. In this case, both JavaScript-based HTTP requests and server responses were appropriately addressed. I think, therefore, that you shouldn’t have major problems developing a basic script that processes the queries entered by an user.
However, if you don’t have a clear idea of how to achieve this on your own, then you’ll have to wait for the last part, where server-side processing will be covered in detail. See you in the last tutorial!
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.