N/APosted on - 09/07/2012
How do you create or what is the script that can be used to have MySQL Ajax tree? Can anybody give some sample codes on making this?
What is the script used for MySQL Ajax tree?
I am giving you a script code which is in a Php language with Ajax and MySql Database.
The following example will demonstrate how a web page can fetch information from a database with AJAX.
1. The HTML Page: In html page there is a drop down list named 'User' and an event 'onChange'. In script tag there is a function showUser which retrieves the users details.
The source code in "getuser.php" runs a query against a MySQL database, and returns the result in an HTML table:
1. PHP opens a connection to a MySQL server
2. The correct person is found
3. An HTML table is created, filled with data, and sent back to the "txtHint" placeholder.