Skip to content
Advertisement

Php/mysql Selecting data from table based on the input provided in a drop down

I am basically trying to select data from the backend mysql database based on the input gathered in a previous drop down. However, I am not able to get this working. Looks like I am missing something, but unable to figure that out!!

Here is the code snippet that I am trying..

JavaScript

Function code

JavaScript

Any suggestions.

![Screenshot]enter image description here

Advertisement

Answer

There is some syntax problem in your original JS script to process the select drop-down selected value.

Please change

JavaScript

to

JavaScript

Sandbox link (working):

http://www.createchhk.com/SOanswers/SOtest5Oct2022.html

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement