Need some help with PHP/MYSQL!!!?

vanichka04

New member
I have a web page with a drop down list of 2 items. When one of those items is clicked, I want it to query my mysql database and grab the associated content and populate the page. I only want the page to be populated by the content that was determined through the drop down. Any suggestions/ articles/ tutorials please??? Thank you
 
If you want it to happen dynamically you're going to need to know how the concept of AJAX works.

Basically, a javascript function fires when the drop down is selected. This function calls a back end PHP script which will query the database and return it back to a javascript function that will replace the innerHTML of an element with the content that you wanted. Learning this doesn't happen over night, but if you google ajax you should be able to find a few tutorials that will get you started.
 
Back
Top