-
Emerald Star member
AJAX to display database results
I am doing a project for work where I have set up a database of employees and their info in a MySQL database. I have a search form to search for names, and it outputs the results to a separate page. I would like to have the search results show up in a div below the form without a page refresh, eliminating the need to use the back button to get back to the form. I've looked everywhere, and the closest thing I've found is a script that loads a static page into a div when a link is clicked, but relies on the "href" tag.
So, does anyone have a tutorial or quick (but detailed) explanation on how to do this? I'm running up against my deadline! Thanks in advance!
-
Prospect
why does no one reply for this thread?
-
Prospect
Displaying the database result by using AJAX than you should have to request page Asynchronously. By passing Asynchronously request to the page and when the page response to it fire the query and load the content in DIV tag by using AJAX. so that you can attach database result with HTML file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules