Grazie al tuo suggerimento sono arrivato alla soluzione, grazie Ely88M
Codice PHP:
<?
$data=date("Y-m");
$anno_sel=substr($row['anno_fondazione'],6,10);
$mese_sel=($row['anno_fondazione']);
?>
<?php
if ($anno_sel=='' || $anno_sel==0)
{
?>
<span class="testo_rosso_bold">ignoto</span>
<?php
}
if ($anno_sel>0 && ($mese_sel==0 || $mese_sel==''))
{
?>
<span class="testo_blu_bold"><?=$anno_sel?></span>
<?php
}
if ($anno_sel>0 && ($mese_sel>0))
{
?>
<span class="testo_blu_bold"><?=$row['anno_fondazione']?></span>
<?php
}
?>