1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<table bgcolor="#BABABA" bordercolor="#FFFFFF" border="1" style="font-size:12px" align="center">';
<tr>
<th align="center">Titre1</th>
<th align="center">Titre2</th>
<th align="center">Titre3</th>
</tr>
<?php
if (mysql_num_rows($sql)>0) {
$sql=select organe, count(*) as NBR_ALARME....
echo'<tr>';
echo '<td '.$td1.' align="center">Alarme</td>';
while($row=mysql_fetch_array($sql)
{
echo '<tr>';
echo '<td '.$td.' align="center" rowspan="'.$row['NBR_ALARME'].'">'.$row['NBR_ALARME'].'</td>';
echo '<td '.$td.' align="center" rowspan="'.$row['NBR_ALARME'].'">'.$row['organe'].'</td>';
echo'</tr>';
}
echo'</tr>';
}
echo'</table>'; |
Partager