I have a form with a DATETIME field, I am trying to extract the date, in the body section I put
I get this message:
Parse error: syntax error, unexpected '{', expecting ')' in /home/hilair/public_html/chef/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 4.
What am I doing wrong?
<td><?php echo substr({evdate},0,10); ?></td>
I get this message:
Parse error: syntax error, unexpected '{', expecting ')' in /home/hilair/public_html/chef/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 4.
What am I doing wrong?
Hi Larion476,
You can use the {input_name} syntax in PHP. Use $MyRow->input_name instead.
Bob
You can use the {input_name} syntax in PHP. Use $MyRow->input_name instead.
<td><?php echo substr($MyRow->evdate, 0, 10); ?></td>
Bob
Hi Gilles,
Sorry, I don't understand your question? ChronoForms creates $MyRow for you.
Bob
Sorry, I don't understand your question? ChronoForms creates $MyRow for you.
Bob
This topic is locked and no more replies can be posted.