Hello to all.
β
I am trying to implement following code somewhere in the CCv6 Connection:
β
$today = date("d.m.Y");
$polTerm = $this->data['polTerm'];
if ($polTerm < $today) {
echo '<td style="color: red;">$polTerm </td>';
}
where date saved in DB Column 'polTerm' and Read in the CCv6 Table column turns red if it is earlier than today,
but did not succeed because of several possible reasons:
β
1. Code is completely wrong π ;
2. Place in CCv6 where this code is executed is completely wrongπ
β
I tried two ways:
1. implement this code with Read Data function in Where conditions , but got the following error: Unknown column 'Submission.<td style="color' in 'where clause';
2. Create PHP function and then call it in index before Table view.
β
None is working.
β
I would be very happy if someone helped me with this.
β
In addition, what would be code if I wanted to create filter with this conditon?
β
Thank you in advance -
Elita
β
I am trying to implement following code somewhere in the CCv6 Connection:
β
$today = date("d.m.Y");
$polTerm = $this->data['polTerm'];
if ($polTerm < $today) {
echo '<td style="color: red;">$polTerm </td>';
}
where date saved in DB Column 'polTerm' and Read in the CCv6 Table column turns red if it is earlier than today,
but did not succeed because of several possible reasons:
β
1. Code is completely wrong π ;
2. Place in CCv6 where this code is executed is completely wrongπ
β
I tried two ways:
1. implement this code with Read Data function in Where conditions , but got the following error: Unknown column 'Submission.<td style="color' in 'where clause';
2. Create PHP function and then call it in index before Table view.
β
None is working.
β
I would be very happy if someone helped me with this.
β
In addition, what would be code if I wanted to create filter with this conditon?
β
Thank you in advance -
Elita