no scusa non ho capito.
il problema è che mi appoggio su dw, quindi il codice lo scrive lui.
io faccio la query e mi estrare tutti i redord letti e da leggere, solo che mi sa che dw non distingue i letti e da leggere.
per stampare a video:
Codice PHP:
<?php do { ?>
<div style="border-bottom:1px dashed #333333;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%"><?php echo $row_Recordset1['da']; ?></td>
<td width="40%"><?php echo $row_Recordset1['data']; ?></td>
<td width="20%"><?php if ($totalRows_Recordset1 > 0) { // Show if recordset not empty ?>
[url="leggi.php?id=<?php echo $row_Recordset1['id']; ?>"]Leggi[/url]
<?php } // Show if recordset not empty ?>
</td>
</tr>
</table></div>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
$row_Recordset1 è la query che mi hai dato.
se facevo due query distinte, applicato a $row_Recordset1 un colore e a $row_Recordset2 un altro colore.
ma cosi non so come fare.