Hello-
I want to populate a dropdown from an external menu, but i want to run a WHERE on the query that populates the drop down.
i have the dropdown working- it displays ALL the entries for the field but I only want to display some of the field records.
For instance, let's say the field is a list of people's last names (l_name), and I only want to populate the dropdown with names="smith".. how do I do that? where do i put the code?
user_id, l_name
0,smith
1,jones
2,jackson
3,smith
In this example, I want to load just the names "smith" into my dropdown.
Thanks in advance!
I want to populate a dropdown from an external menu, but i want to run a WHERE on the query that populates the drop down.
i have the dropdown working- it displays ALL the entries for the field but I only want to display some of the field records.
For instance, let's say the field is a list of people's last names (l_name), and I only want to populate the dropdown with names="smith".. how do I do that? where do i put the code?
user_id, l_name
0,smith
1,jones
2,jackson
3,smith
In this example, I want to load just the names "smith" into my dropdown.
Thanks in advance!