Search found 4 matches
- Thu Sep 16, 2004 8:45 pm
- Forum: PHP - Code
- Topic: Populating a list from a MySQL query
- Replies: 12
- Views: 818
- Thu Sep 16, 2004 8:21 pm
- Forum: PHP - Code
- Topic: Populating a list from a MySQL query
- Replies: 12
- Views: 818
Okay, I understand now how I can use javascript to control the list displayed based on a specified value. Now how do I incorporate MySQL into the mix? In your example dethron, you hard-coded the possible lists in javascript, but the values in the lists I am using are dynamic. The data in both lists ...
- Thu Sep 16, 2004 7:59 pm
- Forum: PHP - Code
- Topic: Populating a list from a MySQL query
- Replies: 12
- Views: 818
I don't know anything about DOM so that probably won't work for me. I suppose I could just have a Javascript function call the page again with a variable in the query string which PHP could use to populate the second list. I'd like to avoid reloads as much as possible though. If I pre-store the resu...
- Thu Sep 16, 2004 7:42 pm
- Forum: PHP - Code
- Topic: Populating a list from a MySQL query
- Replies: 12
- Views: 818
Populating a list from a MySQL query
I am trying to populate one drop down list based on the contents of another list. When a user selects an item from the first list, I want to run a MySQL query based on the value of that item, then populate the second list from the results of the query. I realize that PHP is server-side, and that thi...