bencsikzoli
New Member
Hi,
I'm new to php and to everything in overall. I'm still learning the processes but I need to go on due to work.
I have a table with cascading dropdown to get the ID and display the name as label. In another field with calc I want to get back the value and display the label but with a simple if statement I can get back the label as value into my database.
Can you help me out how to change the code?
Thanks,
Zoltan
I'm new to php and to everything in overall. I'm still learning the processes but I need to go on due to work.
I have a table with cascading dropdown to get the ID and display the name as label. In another field with calc I want to get back the value and display the label but with a simple if statement I can get back the label as value into my database.
Can you help me out how to change the code?
PHP:
if ('{matches___set_a}' > '{matches___set_x}') {
return '{matches___player_a}';
}
elseif ('{matches___set_x}' > '{matches___set_a}') {
return '{matches___player_x}';
}
else return '';
Thanks,
Zoltan