Good morning
I'm managing master data with Chronoform5.
Wanting to show on my site the names of boys who make the years, I have built one
Connection with ChronoConnectivity5. So as a condition I have
<?php
$today = date('%-m-d');
return array('visualizza.eliminare' => '1' ,'visualizza.data LIKE' => "%$today%");
?>
In frontlist I wrote
<td ><?php
$alfa="{visualizza.immagine}";
$beta='<img class="img-thumbnail" WIDTH="150" src="' ;
$gamma = 'http://' . $_SERVER['HTTP_HOST'] . "/" . basename(dirname($_SERVER['PHP_SELF']));
$delta="/images/per_database/upload/foto/";
$teta='" />';
echo $beta.$bet.$gamma.$delta.$alfa.$teta ;
?></td>
</tr>
<tr>
<td><font face="Verdana" size="4" >{visualizza.cognome} </font></td>
</tr>
<td><font face="Verdana" size="3" >{visualizza.nome} </font></td>
<tr>
<td><font face="Verdana" size="2" >{visualizza.data}</td>
</tr>
The final result shows me the photo with the name, last name and date of birth.
Now I wanted to see the writing instead of the date of birth. "What is now twenty years old!"
I've tried and tried different formulas but nothing ... I can not really calculate the years since birth.
How can I do?
Thank you
I'm managing master data with Chronoform5.
Wanting to show on my site the names of boys who make the years, I have built one
Connection with ChronoConnectivity5. So as a condition I have
<?php
$today = date('%-m-d');
return array('visualizza.eliminare' => '1' ,'visualizza.data LIKE' => "%$today%");
?>
In frontlist I wrote
<td ><?php
$alfa="{visualizza.immagine}";
$beta='<img class="img-thumbnail" WIDTH="150" src="' ;
$gamma = 'http://' . $_SERVER['HTTP_HOST'] . "/" . basename(dirname($_SERVER['PHP_SELF']));
$delta="/images/per_database/upload/foto/";
$teta='" />';
echo $beta.$bet.$gamma.$delta.$alfa.$teta ;
?></td>
</tr>
<tr>
<td><font face="Verdana" size="4" >{visualizza.cognome} </font></td>
</tr>
<td><font face="Verdana" size="3" >{visualizza.nome} </font></td>
<tr>
<td><font face="Verdana" size="2" >{visualizza.data}</td>
</tr>
The final result shows me the photo with the name, last name and date of birth.
Now I wanted to see the writing instead of the date of birth. "What is now twenty years old!"
I've tried and tried different formulas but nothing ... I can not really calculate the years since birth.
How can I do?
Thank you
Hello Fasano,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I change the language used in Validation messages?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I change the language used in Validation messages?
P.S: I'm just an automated service😉
Hi Fasano,
For new connections you should use v6 because it offers much more flexibility.
In this case here in v5, you will need to use php to do the calculation, but the code depends on the "data" field format, in which format do you have the date stored ?
Best regards,
Max
For new connections you should use v6 because it offers much more flexibility.
In this case here in v5, you will need to use php to do the calculation, but the code depends on the "data" field format, in which format do you have the date stored ?
Best regards,
Max
Hi Fasano,
So you can try this PHP code instead:
Best regards,
Max
So you can try this PHP code instead:
<?php
echo date("Y") - date("Y", strtotime($row["visualizza"]["data"]));
Best regards,
Max
This topic is locked and no more replies can be posted.
