i really like our work. It make my work so much easier. Thanks again.
Lately i have a little problem:
I try to make dynamic valuelist entries, like u explain in the Using Value-list tutorial. Further more i'd like to manipulate the query with a simple WHERE adding in the code. This is the Basic, like the one in the tutorial and it works fine.
- Code: Select all
[gesetz]
__sql__ = "SELECT gesetz_id, gesetz_name FROM gesetz"
Now with the WHERE:
- Code: Select all
[gesetz]
__sql__ = "SELECT gesetz_id, gesetz_name FROM gesetz WHERE nation_id = '$nation_id'"
as result i have an empty valuelist.
im not sure if the variable is right. how are the db filds are stored in a variable? Or is it possible to do a WHERE querry in the valuelist.ini?
Greetz,
Philipp