How can I hide a field (province) if this field is equal to the city (city)?
Thanks
if {province} = {city} ??????
Thanks
if {province} = {city} ??????
<?php
if ( $myRow->province == $MyRow->city ) {
$province = $myRow->province;
} else {
$province = $MyRow->city.", ".$MyRow->province;
}
echo $province;
?>
<table width="100%" height="221" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="27" colspan="2" bgcolor="#FFDF00" scope="col"><h5>{gruppo}</h5></th>
</tr>
<tr>
<td width="304" bgcolor="#FFFFAA"><p>{indirizzo}</p>
<p>{cap} - {paese} - {provincia}</p>
<p>Telefono - {telefono}</p>
<p><a target="_blank" href="{url_gruppo}">{url_gruppo}</a></p>
<p><a href="mailto:{email_gruppo}">{email_gruppo}</a></p></td>
<td width="130" align="center" valign="middle" bgcolor="#FFFFAA"><img src="components/com_chronocontact/uploads/gruppi_speleo_italia/{logo}"></td>
</tr>
</table>
if ( $myRow->province == $MyRow->city ) {