blue-mouse
Member
Hi,
I have a problem for my calc element with code:
This return nothing, and should return "aaaa".
Problem is in my opinion with "contains" --- i need to use this and i don't use it earlier in CALC element.
What can i modify in my code for CALC?
added:
Doesn't work also this:
I have a problem for my calc element with code:
PHP:
$db =& JFactory::getDBO();
$tp5 = '{ccjom_cc_lista_zastepstw___Field_mix}';
$a = 'Zapotrzebowanie';
$b = 'Cele';
if ($tp5 contains "Zapotrzebowanie"){
return "aaaa";
}
This return nothing, and should return "aaaa".
Problem is in my opinion with "contains" --- i need to use this and i don't use it earlier in CALC element.
What can i modify in my code for CALC?
added:
Doesn't work also this:
PHP:
$db =& JFactory::getDBO();
$tp5 = '{ccjom_cc_lista_zastepstw___Field_mix}';
$a = 'Zapotrzebowanie';
$b = 'Cele';
if ('{ccjom_cc_lista_zastepstw___Field_mix}' CONTAINS "Zapotrzebowanie"){
return "aaaa";
}