Hi,
I have a database with a column named "field1". This column stores either the value 1, 2 or 3. In my chronoconectivity I want this to be displayed as a text, for exampel, if the value is 2 I want the text "Hello" to be shown instead of "2".
I have put this code in the body field in my cc:
But for every line in the database it prints "Goodbye", even thou there are values of 2 in it.
I have a database with a column named "field1". This column stores either the value 1, 2 or 3. In my chronoconectivity I want this to be displayed as a text, for exampel, if the value is 2 I want the text "Hello" to be shown instead of "2".
I have put this code in the body field in my cc:
<?php
$v_field1 = '{field1}';
if ($v_field1 == 2)
$field1 = "Hello";
else
$field1 = "Goodbye";
echo $field1;
?>
But for every line in the database it prints "Goodbye", even thou there are values of 2 in it.