Salve a tutti.
Ho l'ennesimo problema...
Dunque, io vorrei che nella visualizzazione di un recordset intabellato, un campo della tabella si colorasse a seconda che un dato sia presente nel recordset oppure no...
In pratica, avrei fatto così:
if ($results['riferimento'])=NULL
{
echo '<div align="center">';
echo '<center>';
echo '<table border="1" width="774" height="1" bordercolorlight="#000080">';
echo '<tr>';
echo '<td width="55" height="1">';
echo '<p align="center"><font face="Arial" size="2">';
print ($results['numero']);
echo '<td width="83" height="1"><font face="Arial" size="2">';
print ($results['data']);
echo '</font></td>';
echo '<td width="217" height="1" >';
print ($results['oggetto']);
echo '<td width="137" height="1" align="center"><font face="Arial" size="2">';
print ($results['riferimento']);
echo '</font></td>';
echo '<td width="239" height="1" align="center"><font face="Arial" size="2"></font></td>';
echo '</tr>';
echo '</table>';
echo '</center>';
echo '</div>';
}
else
{
echo '<div align="center">';
echo '<center>';
echo '<table border="1" width="774" height="1" bordercolorlight="#000080">';
echo '<tr>';
echo '<td width="55" height="1"bgcolor="#66FFFF">';
echo '<p align="center"><font face="Arial" size="2">';
print ($results['numero']);
echo '<td width="83" height="1"><font face="Arial" size="2">';
print ($results['data']);
echo '</font></td>';
echo '<td width="217" height="1" >';
print ($results['oggetto']);
echo '<td width="137" height="1" align="center"><font face="Arial" size="2">';
print ($results['riferimento']);
echo '</font></td>';
echo '<td width="239" height="1" align="center"><font face="Arial" size="2"></font></td>';
echo '</tr>';
echo '</table>';
echo '</center>';
echo '</div>';
}
ma mi dà errore...
Perché?
Grazie e scusate
Franz