Using jQuery AJAX and PHP how to fetch MySQL table records array as JSON format

Using jQuery AJAX and PHP how to fetch data from a MySQL database table as JSON format. The PHP script retrieves the MySQL tables records and send to client side jQuery Script as JSON string format. This tutorial also explains how to retrieve data from MySQL database in JSON format using PHP, AJAX & jQuery and how to convert MySQL records or rows in JSON format using PHP and jQuery. Continue reading “Using jQuery AJAX and PHP how to fetch MySQL table records array as JSON format”

JavaScript global variable updated by onchange event of drop down lists

Example of Global variable in JavaScript. In this program when you select a drop down element then JavaScript function is called and the select element is passed to the function and function updates the global variable inside the function and add the select element’s option element’s value to the global variable and the output is displayed. Continue reading “JavaScript global variable updated by onchange event of drop down lists”