Return value instead of label

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?

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
 
Perfect, this is what I was looking for.

Another question.
I have a value in the database and I want to set another field where I display another value which is not stored in that table.

Eg.
Table 1 has the followings:
competition ID + Name

And I want to display the type of the competition which it stored in table 2.

Thanks again,
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top